-
Notifications
You must be signed in to change notification settings - Fork 125
fix: use correct AI model names and respect provider-specific env vars #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
clneagu
wants to merge
1
commit into
jnsahaj:main
Choose a base branch
from
clneagu:fix-ai-models
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
OpenAI gpt-4o-mini model current API💡 Result:
Here’s the current OpenAI API summary for the GPT-4o‑mini model (official docs/news):
Sources:
[1] OpenAI Platform — GPT-4o mini docs.
[2] OpenAI blog announcement — “GPT‑4o mini” (July 18, 2024).
[3] OpenAI release notes / Help Center (model updates; GPT‑4.1 mini replacement notice).
[4] OpenAI Platform — GPT‑4o mini TTS docs.
[5] OpenAI Platform — GPT-4o model pricing & features.
Would you like example API calls (Requests/JSON) for v1/responses or v1/chat/completions using gpt-4o-mini?
🌐 Web query:
Anthropic Claude claude-sonnet-4-5-20250929 model API💡 Result:
Summary — what it is
Quick usage example (Anthropic / Claude API)
curl https://api.anthropic.com/v1/messages
-H "Content-Type: application/json"
-H "x-api-key: $ANTHROPIC_API_KEY"
-H "anthropic-version: 2023-06-01"
-d '{
"model":"claude-sonnet-4-5-20250929",
"max_tokens":1024,
"messages":[{"role":"user","content":"Hello, Claude"}]
}'
The /v1/messages docs show this request/response format. [5]
Partner endpoints / alternate names
Notes
Sources
[1] Anthropic model docs (Get a Model).
[2] Anthropic product page (Claude Sonnet 4.5).
[3] Claude docs — "What's new" / availability (lists claude-sonnet-4-5-20250929).
[4] Google Cloud Vertex AI — Claude Sonnet 4.5 partner model page.
[5] Claude API / Messages endpoint example.
🌐 Web query:
Google Gemini gemini-1.5-flash model API💡 Result:
Summary — gemini-1.5-flash (Google Gemini)
If you want a short example (OpenAI-compatible) or Vertex AI code snippet for calling gemini-1.5-flash, tell me which environment you’ll use (Vertex AI Python SDK, REST/gcloud, or OpenAI-compatible client) and I’ll paste the minimal working example with the correct endpoint and parameters plus notes about authentication and region.
Sources: Google Cloud model page and release notes; Google Developers post about OpenAI Library access. [1][3][2]
🌐 Web query:
xAI Grok grok-beta model API💡 Result:
Short summary — xAI "grok-beta" model API
If you want, I can:
Consider using more current model versions for Gemini and xAI.
The model names are valid and callable, but note:
gemini-1.5-flashis documented as legacy/deprecated; Google recommends using Gemini 2.0 Flash or newer.grok-betais a public-beta early model; xAI has since released newer versions (grok-2 and later). Check docs.x.ai for current recommended models and pricing.gpt-4o-miniand Anthropicclaude-sonnet-4-5-20250929are current and supported.Also applies to: 115-115, 122-123
🤖 Prompt for AI Agents