Skip to content

Update OpenAI model to gpt-6-astra - #775

Open
ngoiyaeric wants to merge 2 commits into
mainfrom
update-model-gpt-6-astra-805669275004264588
Open

Update OpenAI model to gpt-6-astra#775
ngoiyaeric wants to merge 2 commits into
mainfrom
update-model-gpt-6-astra-805669275004264588

Conversation

@ngoiyaeric

@ngoiyaeric ngoiyaeric commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Updates the OpenAI model selection in lib/utils/index.ts to gpt-6-astra, including support for gpt-6-astra model switch cases.


PR created automatically by Jules for task 805669275004264588 started by @ngoiyaeric

Summary by CodeRabbit

  • Improvements
    • Updated GPT-5.1, GPT-6 Astra, and GPT-6 selections to use the latest GPT-6 model.
    • Updated the default OpenAI fallback to use GPT-6 Astra.
    • Updated the final fallback to use GPT-6.
    • Improved OpenAI error messaging by removing references to a specific model.

Update getModel in lib/utils/index.ts to use gpt-6-astra for OpenAI provider calls.

Co-authored-by: ngoiyaeric <115367894+ngoiyaeric@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
qcx Ready Ready Preview Sep 4, 2026 3:12am UTC

@CLAassistant

CLAassistant commented Sep 3, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ ngoiyaeric
❌ google-labs-jules[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@qodo-code-review

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Route OpenAI requests to gpt-6-astra

✨ Enhancement ⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Routes explicit OpenAI selections to gpt-6-astra and recognizes three new aliases.
• Uses gpt-6-astra for default and terminal OpenAI fallback paths.
• Generalizes missing-key diagnostics across supported OpenAI selections.
Diagram

graph TD
  A["Model Request"] --> B["getModel"] --> C{"OpenAI Path"}
  C -->|Selected alias| D["Selected Route"] --> F["OpenAI SDK"] --> G["gpt-6-astra"]
  C -->|Default or fallback| E["Default Route"] --> F
Loading
High-Level Assessment

The direct replacement is proportionate to this narrowly scoped model migration and preserves the existing provider-selection behavior. Extracting the repeated model identifier into a constant was considered, but it would add an unrelated refactor for only three references.

Files changed (1) +7 / -4

Enhancement (1) +7 / -4
index.tsSwitch OpenAI model resolution to gpt-6-astra +7/-4

Switch OpenAI model resolution to gpt-6-astra

• Adds gpt-6-astra, GPT-6 Astra, and GPT-6 selection aliases while retaining GPT-5.1 compatibility. Explicit, default, and terminal OpenAI paths now instantiate gpt-6-astra, and missing-key logging is generalized.

lib/utils/index.ts

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Team

Run ID: 6f074222-8727-486d-bfcb-e6817e117a17

📥 Commits

Reviewing files that changed from the base of the PR and between 8b4652e and fef64cd.

📒 Files selected for processing (1)
  • lib/utils/index.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
🔇 Additional comments (1)
lib/utils/index.ts (1)

78-78: 🎯 Functional Correctness

No actionable model-ID issue established.

gpt-6-astra is an official OpenAI model ID. Its staged rollout makes account access account-specific. The available information does not establish whether gpt-6 is valid.


Walkthrough

getModel now routes GPT-5.1 and GPT-6 selections to OpenAI with the gpt-6 model ID. The default OpenAI fallback returns gpt-6-astra, and the final fallback returns gpt-6.

Changes

OpenAI model routing

Layer / File(s) Summary
Update OpenAI routing
lib/utils/index.ts
The OpenAI selection case accepts additional GPT-6 names and returns gpt-6. The default fallback returns gpt-6-astra. The final fallback returns gpt-6. The missing-key error no longer names GPT-5.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to fef64

OpenAI model selection now routes GPT-5.1 and GPT-6 variants to gpt-6, with updated fallback model IDs. No current merge-blocking risk is identified.

Poem

I’m a rabbit routing models bright
GPT-6 hops into flight
Astra waits on fallback’s way
OpenAI guides the run today
My carrots cheer the cleaner choice

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: updating OpenAI model selection to gpt-6-astra. It is concise and specific.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-model-gpt-6-astra-805669275004264588

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can add REVIEW.md to your repo root and Qodo follows it on every PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

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.

2 participants