Browse Source

V0.1.0

pull/1/head
gjl 1 year ago
parent
commit
045b158dfe
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/mindpilot/app/chat/chat.py

+ 1
- 3
src/mindpilot/app/chat/chat.py View File

@@ -48,7 +48,7 @@ def create_models_from_config(configs, callbacks, stream):


def create_models_chains(
history, prompts, models, tools, callbacks, metadata, agent_enable
history, prompts, models, tools, callbacks, agent_enable
):
chat_prompt = None

@@ -84,7 +84,6 @@ def create_models_chains(

async def chat(
query: str = Body(..., description="用户输入", examples=[""]),
metadata: dict = Body({}, description="附件,可能是图像或者其他功能", examples=[]),
history: List[History] = Body(
[],
description="历史对话",
@@ -119,7 +118,6 @@ async def chat(
tools=tools,
callbacks=callbacks,
history=history,
metadata=metadata,
agent_enable=agent_enable
)



Loading…
Cancel
Save