Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds support for the gpt-6-astra model to the OpenAI plugin. Since the model's Chat Completions endpoint rejects function tools, a new multimodalNoTools capability configuration is introduced and assigned to gpt-6-astra to prevent advertising tool support. A corresponding unit test TestGPT6AstraCatalogEntry has been added to verify this behavior. I have no feedback to provide.
cabljac
force-pushed
the
feat/compat-oai-go-gpt-6-astra
branch
from
September 8, 2026 16:23
759ab14 to
ed108a8
Compare
This was referenced Sep 8, 2026
gpt-6-astra was only reachable through dynamic resolution, which describes it with the generic multimodal defaults and so advertises tool support. The Chat Completions endpoint rejects function tools for this model at every reasoning_effort, so the entry declares Tools and ToolChoice false. Go core then rejects a request carrying tools before it reaches OpenAI. Multiturn, media and system role worked on that endpoint in a live run; constrained output stays declared as the catalog default and is unverified, since the live run used json_schema without strict. TestGPT6AstraCatalogEntry pins the label, the single version, the exact supports and that Init registers the model without tools advertised. TestGPT6AstraRejectsToolsBeforeSend pins that Generate with a tool fails with ErrUnsupportedByModel offline. TestSupportedModelCatalog and TestConstrainedSupport cover the new entry through the existing table checks.
cabljac
force-pushed
the
feat/compat-oai-go-gpt-6-astra
branch
from
September 8, 2026 17:16
ed108a8 to
ac2b83d
Compare
adesinah
reviewed
Sep 9, 2026
adesinah
requested changes
Sep 9, 2026
adesinah
left a comment
Contributor
There was a problem hiding this comment.
Looks pretty good - I added a comment
cabljac
marked this pull request as ready for review
September 9, 2026 10:30
Contributor
|
Closing as superseded: gpt-6-astra and the broader GPT-6 family catalog refresh are now covered in #7202. |
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.
gpt-6-astrawas only reachable through the dynamic resolution path in the Go OpenAI plugin, which describes it with the generic multimodal defaults. Those claim tool support the model does not have on this endpoint, so the Dev UI andsupportsmetadata were wrong for it. This is the Go counterpart of #6303; Python is #6306.The entry takes a new
multimodalNoToolssupports set: multiturn, media and system role stay on,ToolsandToolChoiceare false. The live run in #6303 against/v1/chat/completionswith a single function tool returned:The same error came back at
lowandxhigh, andreasoning_effort: 'none'was itself rejected, so no value lets tools through on this endpoint. The model page lists function calling as supported without an endpoint caveat, so this may lift; the Responses API for Go is open in #5346. Unlike JS, Go core enforcessupports: a request with tools now fails early withErrUnsupportedByModelrather than reaching OpenAI. The README catalog sentence names the model and the constraint.TestGPT6AstraCatalogEntrypins the label, the single version, the exactai.ModelSupportsand thatInitregisters the model without tools advertised.TestGPT6AstraRejectsToolsBeforeSendpins the early failure offline throughgenkit.Generatewith a tool. The existingTestSupportedModelCatalogandTestConstrainedSupporttable checks cover the entry too. Ingo/:gofmt -lclean,go vet ./plugins/compat_oai/...clean,go test -count=1 ./plugins/compat_oai/...passes all 9 packages.Caveats: no Go live smoke was run.
Constrainedstays at the catalog default ofAll, verified live from Go:WithOutputTypesentjson_schemawithstrict: trueand astra returned schema-conformant JSON that parsed. A Go live run also confirmed text, streaming, image input, system role, multiturn,max_completion_tokens, and that tools fail early withErrUnsupportedByModel; the existingTestPluginLivepasses 16/16 with a key. Go passesreasoning_effortthrough verbatim, somaxandnonewill 400 on this endpoint, andxhighneeds a raw string since openai-go only defines low, medium and high constants. The model also rejectstemperatureother than 1 andtop_p. Related: #5898.