Skip to content

fix(provider): include GPT-6.1 Terra - #2003

Open
Aafimalek wants to merge 1 commit into
1jehuang:masterfrom
Aafimalek:terra-catalog
Open

Aafimalek wants to merge 1 commit into
1jehuang:masterfrom
Aafimalek:terra-catalog

Conversation

@Aafimalek

Copy link
Copy Markdown

Problem

Closes #1997.

GPT-6.1 Terra is missing from the fallback OpenAI model list and has no public API cost estimate. Add it to the list without changing the default, and add OpenAI's published standard, flex and fast short-context reference rates.

The account-specific live catalog still controls availability when present. The existing GPT-6 fallback supplies a 1M context limit. The pricing estimates do not include long-context or cache-write charges.

Source: https://developers.openai.com/api/docs/models/gpt-6.1-terra

Validation

  • Windows: cargo test --locked -p jcode-provider-core --features tokio-tungstenite/handshake — 192 passed, 1 ignored.
  • cargo clippy --locked -p jcode-provider-core --all-targets --features tokio-tungstenite/handshake — completed with two existing needless_return warnings in jcode-storage on Windows. With -D warnings those warnings fail the check.
  • rustfmt --check --edition 2024 for both changed files; git diff --check.
  • Both new tests fail on the base and pass with this change. The handshake feature is enabled explicitly because the standalone core test target otherwise lacks the tungstenite handshake feature required by existing WebSocket tests.

No live OpenAI request was made; model access and account-specific catalog availability were not verified.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] Safe to merge within the reviewed scope; no blocking or non-blocking defects were found.

Summary

Adds gpt-6.1-terra to the fallback OpenAI catalog without changing the gpt-6.1-sol default, and adds standard, flex, and fast short-context reference prices.

Focused checks passed: both Terra tests, all 23 model tests, and all 10 pricing tests. A before-and-after contract check confirmed fallback membership, preservation of the default, and the expected returned pricing values for omitted, standard, flex, and priority tiers. Account-specific catalogs retain precedence over the fallback list.

No actionable issues found. This change is safe to merge within the reviewed scope. No live OpenAI request was made, so account access and live model availability remain unverified. The published upstream rates were not independently verified.

Aafimalek explicitly excluded long-context and cache-write charges in the PR description; those exclusions are intentional and are not reported as issues.

T-Rex validation blocked

Evidence publication only: execution completed successfully, but no artifact upload/publication operation or configured upload destination was available. Executed sources and observed output remain available locally.

  • GPT-6.1 Terra appears in the curated OpenAI fallback list.
  • OpenAI API estimates include GPT-6.1 Terra’s published rates.

Reviews (1) · Last reviewed commit: "fix(provider): include GPT-6.1 Terra" · Reviewed by Greptile

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GPT-6.1 Terra to the OpenAI model library

1 participant