liaoke123 commited on
Commit
ea79587
1 Parent(s): 632a25e

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +66 -1
config.json CHANGED
@@ -1,3 +1,68 @@
1
  {
2
- "hide_history_when_not_logged_in": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  }
 
1
  {
2
+ // 各配置具体说明,见 [https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/使用教程#配置-configjson]
3
+
4
+ //== API 配置 ==
5
+ "openai_api_key": "sk-PghldI4CiqXRpSksHm2VuLi6D1ITpZsGz3Z5RlX7p4dZ0E2K", // 你的 OpenAI API Key,一般必填,若空缺则需在图形界面中填入API Key
6
+ "google_palm_api_key": "", // 你的 Google PaLM API Key,用于 Google PaLM 对话模型
7
+ "xmchat_api_key": "", // 你的 xmchat API Key,用于 XMChat 对话模型
8
+ "minimax_api_key": "", // 你的 MiniMax API Key,用于 MiniMax 对话模型
9
+ "minimax_group_id": "", // 你的 MiniMax Group ID,用于 MiniMax 对话模型
10
+
11
+ //== Azure ==
12
+ "openai_api_type": "openai", // 可选项:azure, openai
13
+ "azure_openai_api_key": "", // 你的 Azure OpenAI API Key,用于 Azure OpenAI 对话模型
14
+ "azure_openai_api_base_url": "", // 你的 Azure Base URL
15
+ "azure_openai_api_version": "2023-05-15", // 你的 Azure OpenAI API 版本
16
+ "azure_deployment_name": "", // 你的 Azure OpenAI Chat 模型 Deployment 名称
17
+ "azure_embedding_deployment_name": "", // 你的 Azure OpenAI Embedding 模型 Deployment 名称
18
+ "azure_embedding_model_name": "text-embedding-ada-002", // 你的 Azure OpenAI Embedding 模型名称
19
+
20
+ //== 基础配置 ==
21
+ "language": "zh-CN", // 界面语言,可选"auto", "zh-CN", "en-US", "ja-JP", "ko-KR", "sv-SE"
22
+ "users": [], // 用户列表,[[用户名1, 密码1], [用户名2, 密码2], ...]
23
+ "local_embedding": false, //是否在本地编制索引
24
+ "hide_history_when_not_logged_in": false, //未登录情况下是否不展示对话历史
25
+ "check_update": true, //是否启用检查更新
26
+ "default_model": "gpt-3.5-turbo", // 默认模型
27
+
28
+ //== API 用量 ==
29
+ "show_api_billing": false, //是否显示OpenAI API用量(启用需要填写sensitive_id)
30
+ "sensitive_id": "", // 你 OpenAI 账户的 Sensitive ID,用于查询 API 用量
31
+ "usage_limit": 120, // 该 OpenAI API Key 的当月限额,单位:美元,用于计算百分比和显示上限
32
+ "legacy_api_usage": false, // 是否使用旧版 API 用量查询接口(OpenAI现已关闭该接口,但是如果你在使用第三方 API,第三方可能仍然支持此接口)
33
+
34
+ //== 川虎助理设置 ==
35
+ "default_chuanhu_assistant_model": "gpt-4", //川虎助理使用的模型,可选gpt-3.5-turbo或者gpt-4等
36
+ "GOOGLE_CSE_ID": "", //谷歌搜索引擎ID,用于川虎助理Pro模式,获取方式请看 https://stackoverflow.com/questions/37083058/programmatically-searching-google-in-python-using-custom-search
37
+ "GOOGLE_API_KEY": "", //谷歌API Key,用于川虎助理Pro模式
38
+ "WOLFRAM_ALPHA_APPID": "", //Wolfram Alpha API Key,用于川虎助理Pro模式,获取方式请看 https://products.wolframalpha.com/api/
39
+ "SERPAPI_API_KEY": "", //SerpAPI API Key,用于川虎助理Pro模式,获取方式请看 https://serpapi.com/
40
+
41
+ //== 文档处理与显示 ==
42
+ "latex_option": "default", // LaTeX 公式渲染策略,可选"default", "strict", "all"或者"disabled"
43
+ "advance_docs": {
44
+ "pdf": {
45
+ "two_column": false, // 是否认为PDF是双栏的
46
+ "formula_ocr": true // 是否使用OCR识别PDF中的公式
47
+ }
48
+ },
49
+
50
+ //== 高级配置 ==
51
+ // 是否多个API Key轮换使用
52
+ "multi_api_key": false,
53
+ "api_key_list": [
54
+ "sk-xxxxxxxxxxxxxxxxxxxxxxxx1",
55
+ "sk-xxxxxxxxxxxxxxxxxxxxxxxx2",
56
+ "sk-xxxxxxxxxxxxxxxxxxxxxxxx3"
57
+ ],
58
+ // 自定义OpenAI API Base
59
+ // "openai_api_base": "https://api.chatanywhere.com.cn",
60
+ // 自定义使用代理(请替换代理URL)
61
+ // "https_proxy": "http://127.0.0.1:1079",
62
+ // "http_proxy": "http://127.0.0.1:1079",
63
+ // 自定义端口、自定义ip(请替换对应内容)
64
+ // "server_name": "0.0.0.0",
65
+ // "server_port": 7860,
66
+ // 如果要share到gradio,设置为true
67
+ // "share": false,
68
  }