add kia ai chat tools6
CI/CD Pipeline / build-and-deploy (push) Successful in 51s Details

This commit is contained in:
vahidrezvani 2026-02-25 12:29:40 +03:30
parent 3c60e3ecfe
commit 9217a54b35
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,8 @@ class KiaAIService:
resp.raise_for_status()
async for line in resp.aiter_lines():
print(f"[KiaAI] RAW LINE: {line!r}")
if not line.strip():
continue
@ -127,6 +129,8 @@ class KiaAIService:
print(f"[KiaAI] Skipping non-JSON line: {raw_data!r}")
continue
print(f"[KiaAI] CHUNK keys={list(chunk.keys())} choices={chunk.get('choices')}")
choices = chunk.get("choices") or []
for choice in choices:
delta = choice.get("delta") or {}