mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-23 22:50:17 +08:00
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)
This commit is contained in:
parent
d6db805885
commit
0a7654c747
@ -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…
x
Reference in New Issue
Block a user