更新代码并修改远程仓库地址

This commit is contained in:
史悦
2025-09-02 13:53:24 +08:00
parent 9471480c89
commit 4c6e03a59f
9 changed files with 132 additions and 9 deletions

View File

@@ -117,7 +117,7 @@ def test_api_stream():
json_data = json.loads(data_content)
logger.debug(f"JSON结构: {_truncate_json_for_logging(json_data)}")
if 'choices' in json_data:
if 'choices' in json_data and json_data['choices']:
delta = json_data['choices'][0].get('delta', {})
content = delta.get('content', '')