mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 15:59:04 +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"],
|
+ response["usage"]["output_tokens"],
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return ans + "\n**ERROR**: " + str(e), 0
|
return "\n**ERROR**: " + str(e), 0
|
||||||
else:
|
else:
|
||||||
self.client._system_instruction = self.system
|
self.client._system_instruction = self.system
|
||||||
if "max_tokens" in gen_conf:
|
if "max_tokens" in gen_conf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user