增加系统提示词,支持dify使用function call

This commit is contained in:
玄凤科技
2025-04-16 08:56:23 +08:00
parent 6b0dd291c2
commit a3a9b98a1d
7 changed files with 132 additions and 13 deletions
@@ -74,4 +74,4 @@ class LLMProvider(LLMProviderBase):
except Exception as e:
logger.bind(tag=TAG).error(f"Error in function call streaming: {e}")
yield {"type": "content", "content": f"【OpenAI服务响应异常: {e}"}
yield f"【OpenAI服务响应异常: {e}", None