Skip to content

Commit 7fe90d1

Browse files
authored
[feat] 更改了config.json结构,使之清晰易懂
1 parent 9f40922 commit 7fe90d1

1 file changed

Lines changed: 25 additions & 46 deletions

File tree

config.json

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,26 @@
11
{
2-
"system": {
3-
"system_prompt": "你是一个助手,请用简洁的语言(小于200字符)回复。",
4-
"platform": "websocket",
5-
"max_response_length": 200,
6-
"message_queue_timeout": 1
7-
},
8-
"clients": {
9-
"ollama": {
10-
"module": "api.ollama_api",
11-
"class": "AsyncOllamaChatClient",
12-
"kwargs": {
13-
"default_model": "qwen2.5:7b"
14-
}
15-
},
16-
"openai": {
17-
"module": "api.openai_api",
18-
"class": "AsyncOpenAIChatClient",
19-
"kwargs": {
20-
"api_key": "your-api-key",
21-
"default_model": "gpt-3.5-turbo"
22-
}
23-
},
24-
"deepseek": {
25-
"module": "api.deepseek_api",
26-
"class": "AsyncDeepSeekChatClient",
27-
"kwargs": {
28-
"api_key": "your-api-key",
29-
"default_model": "deepseek-chat"
30-
}
31-
},
32-
"websocket": {
33-
"module": "platforms.ws_platform",
34-
"class": "AsyncWebSocketsClient",
35-
"kwargs": {
36-
"uri": "ws://localhost:9238"
37-
}
38-
},
39-
"openrouter": {
40-
"module": "api.openrouter_api",
41-
"class": "AsyncOpenRouterChatClient",
42-
"kwargs": {
43-
"app_name": "MeshBot"
44-
}
45-
}
46-
}
47-
}
2+
"platform": "ollama",
3+
"api_keys": {
4+
"openai": "your-openai-api-key",
5+
"deepseek": "your-deepseek-api-key",
6+
"openrouter": "your-openrouter-api-key",
7+
"gemini": "your-gemini-api-key",
8+
"claude": "your-claude-api-key",
9+
"siliconflow": "your-siliconflow-api-key",
10+
"fastapi": "your-fastapi-token"
11+
},
12+
"model_settings": {
13+
"ollama": "qwen2.5:7b",
14+
"openai": "gpt-3.5-turbo",
15+
"deepseek": "deepseek-chat",
16+
"openrouter": "openai/gpt-3.5-turbo",
17+
"gemini": "gemini-pro",
18+
"claude": "claude-3-sonnet-20240229",
19+
"siliconflow": "deepseek-ai/DeepSeek-V2-Chat",
20+
"fastapi": "fastapi-default"
21+
},
22+
"service_urls": {
23+
"websockets": "ws://localhost:9238",
24+
"fastapi": "http://127.0.0.1:8000"
25+
}
26+
}

0 commit comments

Comments
 (0)