Skip to content

feat(go/plugins/compat_oai): add gpt-6-astra to the OpenAI model catalog - #6304

Closed
cabljac wants to merge 2 commits into
mainfrom
feat/compat-oai-go-gpt-6-astra
Closed

cabljac wants to merge 2 commits into
mainfrom
feat/compat-oai-go-gpt-6-astra

Conversation

@cabljac

@cabljac cabljac commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

gpt-6-astra was 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 and supports metadata were wrong for it. This is the Go counterpart of #6303; Python is #6306.

The entry takes a new multimodalNoTools supports set: multiturn, media and system role stay on, Tools and ToolChoice are false. The live run in #6303 against /v1/chat/completions with a single function tool returned:

400 Function tools with reasoning_effort are not supported for gpt-6-astra in /v1/chat/completions. To use function tools, use /v1/responses or set reasoning_effort to 'none'.

The same error came back at low and xhigh, and reasoning_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 enforces supports: a request with tools now fails early with ErrUnsupportedByModel rather than reaching OpenAI. The README catalog sentence names the model and the constraint.

TestGPT6AstraCatalogEntry pins the label, the single version, the exact ai.ModelSupports and that Init registers the model without tools advertised. TestGPT6AstraRejectsToolsBeforeSend pins the early failure offline through genkit.Generate with a tool. The existing TestSupportedModelCatalog and TestConstrainedSupport table checks cover the entry too. In go/: gofmt -l clean, go vet ./plugins/compat_oai/... clean, go test -count=1 ./plugins/compat_oai/... passes all 9 packages.

Caveats: no Go live smoke was run. Constrained stays at the catalog default of All, verified live from Go: WithOutputType sent json_schema with strict: true and 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 with ErrUnsupportedByModel; the existing TestPluginLive passes 16/16 with a key. Go passes reasoning_effort through verbatim, so max and none will 400 on this endpoint, and xhigh needs a raw string since openai-go only defines low, medium and high constants. The model also rejects temperature other than 1 and top_p. Related: #5898.

@github-actions github-actions Bot added docs Improvements or additions to documentation go labels Sep 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

@adesinah adesinah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good - I added a comment

@cabljac
cabljac marked this pull request as ready for review September 9, 2026 10:30
@cabljac
cabljac requested a review from adesinah September 9, 2026 11:20

@adesinah adesinah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@MichaelDoyle

Copy link
Copy Markdown
Contributor

Closing as superseded: gpt-6-astra and the broader GPT-6 family catalog refresh are now covered in #7202.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation go

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants