文章

基础对话

基础对话

cow配置

配置/chatgpt-on-wechat/config.json文件中:

1
2
3
4
5
{
	"open_ai_api_base": "https://api.302ai.cn/v1",
    "bot_type": "chatGPT",
    "model": "gpt-3.5-turbo"
}

"bot_type""chatGPT",模型为默认模型。

可用模型

添加可用模型:修改/chatgpt-on-wechat/common/const.py文件中的:MODEL_LIST

1
2
3
4
5
6
7
8
9
10
MODEL_LIST = [
    "gpt-3.5-turbo", 
    "gpt-3.5-turbo-1106", 
    "gpt-3.5-turbo-16k", 
    "gpt-4-0125-preview", 
    "gpt-4-0613", 
    "gpt-4-1106-preview", 
    "gpt-4-32k", 
    "gpt-4-32k-0613"
    ]

未添加的模型无法切换:

QQ_1732092821140

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
MODEL_LIST = [
    "gpt-3.5-turbo", 
    "gpt-3.5-turbo-1106", 
    "gpt-3.5-turbo-16k", 
    "gpt-4-0125-preview", 
    "gpt-4-0613", 
    "gpt-4-1106-preview", 
    "gpt-4-32k", 
    "gpt-4-32k-0613", 
    "o1-preview", 
    "o1-mini", 
    "gpt-4o", 
    "gpt-4o-mini-2024-07-18", 
    "gpt-4o-2024-08-06", 
    "ChatGPT-4o-latest", 
    "gpt-4-turbo", 
    "gpt-3.5-turbo-0125", 
    "gpt-4", 
    "gpt-3.5-turbo-instruct", 
    "gpt-4-gizmo-*", 
    "gpt-4o-audio-preview", 
    "gpt-4o-2024-05-13", 
    "claude-3-5-sonnet-20241022", 
    "claude-3-opus-20240229", 
    "claude-3-haiku-20240307", 
    "claude-3-5-sonnet-20240620", 
    "claude-3-5-sonnet-lastest", 
    "claude-3-5-haiku-20241022", 
    "gemini-1.5-pro-002", 
    "gemini-1.5-flash-002", 
    "gemini-1.5-pro", 
    "gemini-1.5-pro-0801", 
    "gemini-1.5-pro-latest", 
    "gemini-1.5-pro-001", 
    "gemini-1.5-flash-001", 
    "gemini-exp-1114", 
    "Qwen-Turbo", 
    "Qwen-Long", 
    "Qwen-Plus", 
    "Qwen-Max", 
    "Qwen-Max-Latest", 
    "Qwen-VL-Max", 
    "Qwen-VL-Plus", 
    "Qwen-Math-Plus", 
    "glm-4", 
    "glm-4-Long", 
    "glm-4-Plus", 
    "glm-4-Air", 
    "glm-4-Flash", 
    "glm-4-AirX", 
    "CodeGeeX-4", 
    "glm-4V", 
    "glm-4V-Plus", 
    "Baichuan2-53B", 
    "Baichuan2-Turbo", 
    "Baichuan3-Turbo", 
    "Baichuan3-Turbo-128k", 
    "Baichuan4", 
    "Baichuan2-Turbo-192k", 
    "moonshot-v1-128k", 
    "moonshot-v1-32k", 
    "Moonshot-v1-8k", 
    "Yi-Large", 
    "yi-large-rag", 
    "Yi-Vision", 
    "yi-medium-200k", 
    "Step-1V-32k", 
    "Step-1V-8k", 
    "ERNIE-4.0-8K", 
    "ERNIE-4.0-Turbo", 
    "Deepseek-Chat", 
    "Deepseek-Coder", 
    "Doubao-pro-32k", 
    "Doubao-pro-128k", 
    "Spark Max", 
    "Spark Ultra", 
    "Spark Lite", 
    "SenseChat-5", 
    "SenseChat-Turbo", 
    "abab6.5s", 
    "Hunyuan-Lite", 
    "Hunyuan-Standard", 
    "Hunyuan-Standard-256K", 
    "Hunyuan-Pro", 
    "Hunyuan-Code", 
    "Hunyuan-Role", 
    "Hunyuan-Functioncall", 
    "Hunyuan-Vision", 
    "Yi-Lightning", 
    "Step-1.5V-Turbo", 
    "Llama3.2-90B", 
    "Llama3.2-11B", 
    "Qwen2.5-72B", 
    "Llama3.1-405B", 
    "Llama3.1-70B", 
    "Llama3.1-8B", 
    "Qwen2.5-Coder-7B", 
    "Llama3-70B", 
    "Llama3-8B", 
    "Mistral-Large-2", 
    "Mixtral-8x7B", 
    "Gemma-7B", 
    "Gemma2-9B", 
    "Gemma2-27B", 
    "Command R+", 
    "Qwen2-72B", 
    "Qwen2-7B", 
    "Llama-3.1-nemotron", 
    "farui-plus", 
    "XuanYuan-70B", 
    "ChatLaw", 
    "pplx-8b-online", 
    "grok-beta", 
    "pplx-70b-online", 
    "pplx-405b-online", 
    "Qwen2.5-Math-72B"
]
本文由作者按照 CC BY 4.0 进行授权