Skip to content

Fix/provider error labels#180

Merged
virattt merged 2 commits intovirattt:mainfrom
vdalal:fix/provider-error-labels
Mar 19, 2026
Merged

Fix/provider error labels#180
virattt merged 2 commits intovirattt:mainfrom
vdalal:fix/provider-error-labels

Conversation

@vdalal
Copy link
Copy Markdown
Contributor

@vdalal vdalal commented Mar 14, 2026

Add provider name to API error messages (rate limits, etc.)

dshark3y and others added 2 commits March 11, 2026 10:48
* Add Gemini 3.1 Pro to Google models

Added Google's 3.1 Pro Model to Google Model Options

* Remove Gemini 3 Pro from Google models

Removed Gemini 3 Pro from the Google models list. It's depreciated. Keeping 3.1 Pro.
@vdalal vdalal force-pushed the fix/provider-error-labels branch from 553fb92 to 3e09154 Compare March 14, 2026 18:30
@vdalal
Copy link
Copy Markdown
Contributor Author

vdalal commented Mar 19, 2026

Provider Name in Error Messages

  • Modified src/agent/agent.ts to include the specific LLM provider's name in error messages.
  • Specifically, it resolves the provider (resolveProvider(this.model).displayName) and passes it to formatUserFacingError(errorMessage, provider).
  • This change helps attribute rate limit errors (and other API errors) to the exact provider being used, making debugging easier when the agent is using multiple providers, optional providers or fallback models.

@virattt virattt merged commit 5a21eb9 into virattt:main Mar 19, 2026
2 checks passed
@virattt
Copy link
Copy Markdown
Owner

virattt commented Mar 19, 2026

Thanks!

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.

3 participants