feat: update Gemini API response handling to include block reason and improve error reporting

This commit is contained in:
CaIon
2025-10-05 19:33:47 +08:00
parent 021892b17d
commit 74f93d41f3
4 changed files with 11 additions and 10 deletions

View File

@@ -69,6 +69,7 @@ const (
ErrorCodeEmptyResponse ErrorCode = "empty_response"
ErrorCodeAwsInvokeError ErrorCode = "aws_invoke_error"
ErrorCodeModelNotFound ErrorCode = "model_not_found"
ErrorCodePromptBlocked ErrorCode = "prompt_blocked"
// sql error
ErrorCodeQueryDataError ErrorCode = "query_data_error"