Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add openai image endpoint support (aka DALL-E-2 & DALL-E-3) #116

Merged
merged 5 commits into from
May 9, 2024

Conversation

brainlid
Copy link
Owner

@brainlid brainlid commented May 9, 2024

This adds support for the OpenAI-specific API interface for generating images using DALL-E-2 and DALL-E-3.

It returns a LangChain.Images.GeneratedImage struct and LangChain.Images` module makes it easy to download generated images.

- image generation api endpoint
- added/updated tests
- added Images module with helper functions and tests
* main:
  add support for ContentPart detail level - ChatGPT supports a "detail" option when providing an image through ContentPart - support conditionally sending it - added tests
  updates for ContentPart image support - add support for more image types
- includes helper functions in LangChain.Images module
@brainlid brainlid merged commit 4dd6c43 into main May 9, 2024
1 check passed
@brainlid brainlid deleted the me-add-openai-image-endpoint branch May 9, 2024 22:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant