Repository navigation
Conversation
genkit-bot
reviewed
Dec 3, 2026
genkit-bot
left a comment
There was a problem hiding this comment.
A few comments
Details
Run 16046d13-2a96-4fe5-9ad5-e656df4ab391 · Cloud Run logs · Dashboard
Contributor
Author
|
@genkit-bot re-review |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #274
genkit-openaican now call models that only exist on OpenAI's Responses API, and use OpenAI's server-run tools such as web search and image generation. Chat models keep using Chat Completions with the same request bodies as before.Changes
gpt-5.2-pro,gpt-5.4-pro,gpt-5.5-proandgpt-5.3-codex.gpt-6-astraandgpt-6.1-solnow report tool support. These models take function tools only on Responses, so a call to them with tools goes there instead of failing with a 400.OpenAIConfigfields:transport('auto','chat_completions','responses') picks the API for one call.toolstakes server-run tool entries such asweb_search,image_generationorfile_search.previous_response_idcontinues from a stored response.reasoning_summaryasks for a summary of the model's reasoning.store=False. Encrypted reasoning is requested and kept on part metadata, so multi-turn conversations work without OpenAI storing anything. Generated images go back to the model only withstore=True, because the API refuses them otherwise.Part.custom['responsesItem']and are sent back unchanged on the next turn.INVALID_ARGUMENTbefore the request goes out:transport='chat_completions'on a pro or codex model, or with configtools, on OpenAI's host.transport='responses',previous_response_idorreasoning_summaryon a model served only through Chat Completions.toolsentries that run in your own code, such asfunctionor a shell.base_url=(a gateway), every model stays on Chat Completions unless the call passestransport='responses'. The Mistral, OpenAI-compatible and Google Cloud plugins rejecttransport='responses'.Breaking changes
None.
Cross-SDK
The Dev UI config form for OpenAI models gains
transport,tools,previous_response_idandreasoning_summary. Model responses from the Responses API carry new metadata in traces:{"text": "Mango", "metadata": {"itemId": "msg_..."}} {"reasoning": "...", "metadata": {"itemId": "rs_...", "encryptedContent": "..."}} {"custom": {"responsesItem": {"type": "web_search_call", "id": "ws_...", "status": "completed"}}}The message itself carries
metadata.responseId. The Chat Completions path writes nothing new.