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' + + +