Support openai image_generation via responses API #31310
felixhuttmann
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Currently (langchain-openai 0.3.17), the responses API as wrapped by ChatOpenAi does not support image generation via the new responses API, i.e. the following is not possible via langchain. Instead it errors on the branch in [1].
Example without langchain taken from [2]:
[1] https://github.com/langchain-ai/langchain/blob/langchain-openai%3D%3D0.3.17/libs/core/langchain_core/utils/function_calling.py#L559
[2] https://platform.openai.com/docs/guides/image-generation?image-generation-model=gpt-image-1#generate-images
Motivation
The new openai response API with the gpt-4.1 model permits multi-turn, conversational editing of images. Langchain should support this because the future of LLMs is multi-modal.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions