Browse Source

feat: text={"format": {"type": "text"}},#要求大模型输出纯文本内容

zhangwl 2 months ago
parent
commit
44522d74aa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/routers/chat_tools.py

+ 1 - 0
app/routers/chat_tools.py

@@ -361,6 +361,7 @@ async def group_chat(
         input=api_messages,
         stream=False,
         store=False,
+        text={"format": {"type": "text"}},#要求大模型输出纯文本内容
         tools=tools,
     )