-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Tetrate provider: 'Failed to check account balance' error during model fetching #6993
Copy link
Copy link
Closed
Description
Problem
Users report seeing a 'failed to check account balance' error when trying to use the Tetrate provider.
Root Cause Analysis
This error message originates from the Tetrate API (not goose code). After searching the entire goose codebase, there are no references to 'account balance' - the error is being passed through from Tetrate's API response.
The error occurs when goose calls the Tetrate /v1/models endpoint to fetch available models. Possible causes:
- Invalid/expired API key - The TETRATE_API_KEY stored in goose config may be invalid
- Account issues - User's Tetrate account may have insufficient credits or be suspended
- API key permissions - The API key may not have permission to list models
Investigation Needed
- Verify what the Tetrate API returns when the API key is invalid
- Check if there's a specific endpoint for validating API keys before fetching models
- Consider adding better error handling/messaging for authentication failures
Affected Code
crates/goose/src/providers/tetrate.rs-fetch_supported_models()method- Error handling at lines 272-281 passes through API errors
Suggested Improvements
- Add specific error handling for authentication/balance errors from Tetrate API
- Provide clearer user-facing error messages (e.g., 'Your Tetrate API key may be invalid or your account may need attention. Please check your account at router.tetrate.ai')
- Consider validating the API key during provider configuration
User Impact
Users see a confusing error message and cannot use the Tetrate provider. https://discord.com/channels/1287729918100246654/1465824371019878634
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels