增加系统提示词,支持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
@@ -35,4 +35,5 @@ class LLMProviderBase(ABC):
"""
# For providers that don't support functions, just return regular response
for token in self.response(session_id, dialogue):
yield {"type": "content", "content": token}
yield token, None