From e968f9296be55df3c4c1771207cab415fa229e6f Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Mon, 6 May 2024 22:38:28 +0800 Subject: [PATCH] version = "0.3.0.20240506" --- .gitignore | 1 - .../chatchat/configs/model_providers.yaml | 37 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 chatchat-server/chatchat/configs/model_providers.yaml diff --git a/.gitignore b/.gitignore index 85d3eaf9..5dbe7d2a 100644 --- a/.gitignore +++ b/.gitignore @@ -179,4 +179,3 @@ test.py /knowledge_base/samples/content/202311-D平台项目工作大纲参数,人员中间库表结构说明V1.1(1).docx /knowledge_base/samples/content/imi_temeplate.txt chatchat/data -/chatchat-server/chatchat/configs/model_providers.yaml diff --git a/chatchat-server/chatchat/configs/model_providers.yaml b/chatchat-server/chatchat/configs/model_providers.yaml new file mode 100644 index 00000000..4c6f4ff1 --- /dev/null +++ b/chatchat-server/chatchat/configs/model_providers.yaml @@ -0,0 +1,37 @@ +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: 'chatglm3-6b' + model_type: 'llm' + model_credentials: + server_url: 'http://127.0.0.1:9997/' + model_uid: 'chatglm3-6b' + +ollama: + model_credential: + - model: 'llama3' + model_type: 'llm' + model_credentials: + base_url: 'http://172.21.80.1:11434' + + +