ChuanhuChatGPT / config_example.json
JohnSmith9982's picture
Upload 38 files
8ba98ee
raw history blame
No virus
1.21 kB
{
// 你的OpenAI API Key,一般必填,
// 若缺省填为 "openai_api_key": "" 则必须再在图形界面中填入API Key
"openai_api_key": "",
"language": "auto",
// 如果使用代理,请取消注释下面的两行,并替换代理URL
// "https_proxy": "http://127.0.0.1:1079",
// "http_proxy": "http://127.0.0.1:1079",
"users": [], // 用户列表,[[用户名1, 密码1], [用户名2, 密码2], ...]
"local_embedding": false, //是否在本地编制索引
"default_model": "gpt-3.5-turbo", // 默认模型
"advance_docs": {
"pdf": {
// 是否认为PDF是双栏的
"two_column": false,
// 是否使用OCR识别PDF中的公式
"formula_ocr": true
}
},
// 是否多个API Key轮换使用
"multi_api_key": false,
"api_key_list": [
"sk-xxxxxxxxxxxxxxxxxxxxxxxx1",
"sk-xxxxxxxxxxxxxxxxxxxxxxxx2",
"sk-xxxxxxxxxxxxxxxxxxxxxxxx3"
],
// 如果使用自定义端口、自定义ip,请取消注释并替换对应内容
// "server_name": "0.0.0.0",
// "server_port": 7860,
// 如果要share到gradio,设置为true
// "share": false,
}