mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-27 12:33:16 +00:00
fix: fix function bard_generate_stream's output
fix function bard_generate_stream's output
This commit is contained in:
@@ -34,6 +34,5 @@ def bard_generate_stream(model, tokenizer, params, device, context_len=2048):
|
||||
response = bardapi.core.Bard(token).get_answer(last_user_input["content"])
|
||||
if response is not None and response.get("content") is not None:
|
||||
yield str(response["content"])
|
||||
yield f"bard response error: {str(response)}"
|
||||
|
||||
|
||||
else:
|
||||
yield f"bard response error: {str(response)}"
|
||||
|
@@ -1,3 +1,3 @@
|
||||
"""
|
||||
a tool to discovery sensitive data
|
||||
"""
|
||||
"""
|
||||
|
Reference in New Issue
Block a user