Skip to content

Add Google API error handling for Gemini responses#661

Merged
swuecho merged 1 commit into
masterfrom
fix_gemin_error
May 14, 2025
Merged

Add Google API error handling for Gemini responses#661
swuecho merged 1 commit into
masterfrom
fix_gemin_error

Conversation

@swuecho
Copy link
Copy Markdown
Owner

@swuecho swuecho commented May 14, 2025

  • Define GoogleApiError struct in gemini.go with String() method
  • Implement error handling in model_gemini_service.go for non-200 responses
  • Log detailed error information including status code and message

- Define GoogleApiError struct in gemini.go with String() method
- Implement error handling in model_gemini_service.go for non-200 responses
- Log detailed error information including status code and message
@swuecho swuecho merged commit 9e210d2 into master May 14, 2025
2 checks passed
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.

1 participant