add kia ai chat tools15
CI/CD Pipeline / build-and-deploy (push) Successful in 17s
Details
CI/CD Pipeline / build-and-deploy (push) Successful in 17s
Details
This commit is contained in:
parent
a3ea0436a9
commit
b94402df6b
|
|
@ -72,7 +72,7 @@ async def kia_stream_and_save(
|
|||
token = chunk.content or ""
|
||||
if token:
|
||||
full_ai_content += token
|
||||
yield json.dumps({"content": token}, ensure_ascii=False)
|
||||
yield json.dumps({"content": token}, ensure_ascii=False) + "\n"
|
||||
if chunk.usage_metadata:
|
||||
input_tokens = chunk.usage_metadata.get("input_tokens", 0)
|
||||
output_tokens = chunk.usage_metadata.get("output_tokens", 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue