mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-30 10:43:24 +08:00
- 新功能
- pypi 包新增 chatchat-kb 命令脚本,对应 init_database.py 功能
- 开发者
- _model_config.py 中默认包含 xinference 配置项
- 所有涉及向量库的操作,前置检查当前 Embed 模型是否可用
- /knowledge_base/create_knowledge_base 接口增加 kb_info 参数
- /knowledge_base/list_files 接口返回所有数据库字段,而非文件名称列表
- 修正 xinference 模型管理脚本
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
#openai:
|
|
# model_credential:
|
|
# - model: 'gpt-3.5-turbo'
|
|
# model_type: 'llm'
|
|
# model_credentials:
|
|
# openai_api_key: 'sk-'
|
|
# openai_organization: ''
|
|
# openai_api_base: ''
|
|
# - model: 'gpt-4'
|
|
# model_type: 'llm'
|
|
# model_credentials:
|
|
# openai_api_key: 'sk-'
|
|
# openai_organization: ''
|
|
# openai_api_base: ''
|
|
#
|
|
# provider_credential:
|
|
# openai_api_key: 'sk-'
|
|
# openai_organization: ''
|
|
# openai_api_base: ''
|
|
|
|
xinference:
|
|
model_credential:
|
|
- model: 'glm-4'
|
|
model_type: 'llm'
|
|
model_credentials:
|
|
server_url: 'http://127.0.0.1:9997/'
|
|
model_uid: 'glm-4'
|
|
- model: 'qwen1.5-chat'
|
|
model_type: 'llm'
|
|
model_credentials:
|
|
server_url: 'http://127.0.0.1:9997/'
|
|
model_uid: 'qwen1.5-chat'
|
|
- model: 'bge-large-zh-v1.5'
|
|
model_type: 'embeddings'
|
|
model_credentials:
|
|
server_url: 'http://127.0.0.1:9997/'
|
|
model_uid: 'bge-large-zh-v1.5'
|
|
|
|
#zhipuai:
|
|
# provider_credential:
|
|
# api_key: 'd4fa0690b6dfa205204cae2e12aa6fb6.1'
|
|
|
|
#ollama:
|
|
# model_credential:
|
|
# - model: 'llama3'
|
|
# model_type: 'llm'
|
|
# model_credentials:
|
|
# base_url: 'http://172.21.192.1:11434'
|
|
# mode: 'completion'
|