fix:修复输出日志logger不存在bug

This commit is contained in:
hrz
2025-03-20 16:58:12 +08:00
parent 27df97d710
commit 9932d60dee
2 changed files with 3 additions and 2 deletions
@@ -64,5 +64,5 @@ class LLMProvider(LLMProviderBase):
yield chunk.choices[0].delta.content, chunk.choices[0].delta.tool_calls
except Exception as e:
self.logger.bind(tag=TAG).error(f"Error in function call streaming: {e}")
logger.bind(tag=TAG).error(f"Error in function call streaming: {e}")
yield {"type": "content", "content": f"【OpenAI服务响应异常: {e}"}