mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-08-25 02:00:36 +08:00
fix: 改进图片显示和移除调试输出
优化图片链接格式,在图片前后添加空行以改善显示效果 注释掉OpenAI聊天服务中的调试打印语句
This commit is contained in:
@@ -205,7 +205,7 @@ class OpenAIChatService:
|
||||
async for line in self.api_client.stream_generate_content(
|
||||
payload, model, api_key
|
||||
):
|
||||
print(line)
|
||||
# print(line)
|
||||
if line.startswith("data:"):
|
||||
chunk = json.loads(line[6:])
|
||||
openai_chunk = self.response_handler.handle_response(
|
||||
|
||||
Reference in New Issue
Block a user