Browse Source

fix error in exception (#2694)

### What problem does this PR solve?
#2670

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Kevin Hu 1 year ago
parent
commit
0a7654c747
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      rag/llm/chat_model.py

+ 1
- 1
rag/llm/chat_model.py View File

@@ -1340,7 +1340,7 @@ class GoogleChat(Base):
+ response["usage"]["output_tokens"],
)
except Exception as e:
return ans + "\n**ERROR**: " + str(e), 0
return "\n**ERROR**: " + str(e), 0
else:
self.client._system_instruction = self.system
if "max_tokens" in gen_conf:

Loading…
Cancel
Save