Langchain-Chatchat/server/chat
liunux4odoo a65bc4a63c
添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504)
1、 默认包含2个模板,分别用于LLM对话,知识库和搜索引擎对话
2、 server/utils.py提供函数get_prompt_template,获取指定的prompt模板内容(支持热加载)
3、 api.py中chat/knowledge_base_chat/search_engine_chat接口支持prompt_name参数
2023-09-17 13:27:11 +08:00
..
__init__.py 第一版初步agent实现 (#1503) 2023-09-17 11:19:16 +08:00
agent_chat.py 第一版初步agent实现 (#1503) 2023-09-17 11:19:16 +08:00
chat.py 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00
knowledge_base_chat.py 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00
openai_chat.py 修复ChatGPT api_base_url错误;用户可以在model_config在线模型配置中覆盖默认的api_base_url (#1496) 2023-09-15 22:56:13 +08:00
search_engine_chat.py 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504) 2023-09-17 13:27:11 +08:00
utils.py 第一版初步agent实现 (#1503) 2023-09-17 11:19:16 +08:00