Skip to content

Commit be83877

Browse files
committed
修正配置错误
1 parent 7546dee commit be83877

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

internal/config/config.go

+21-21
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import (
99
var cfg *Config
1010

1111
type Config struct {
12-
Port string `yaml:"port"`
13-
HttpsInfo *httpsInfo `yaml:"https_info"`
14-
HarsPath string `yaml:"hars_path"`
15-
ProxyUrl string `yaml:"proxy_url"`
16-
Gemini *gemini `yaml:"google_gemini"`
17-
Arkose *arkose `yaml:"arkose"`
18-
Bing *bing `yaml:"bing"`
19-
Coze *coze `yaml:"coze"`
20-
Claude *claude `yaml:"claude"`
12+
Port string `yaml:"port"`
13+
HttpsInfo httpsInfo `yaml:"https_info"`
14+
HarsPath string `yaml:"hars_path"`
15+
ProxyUrl string `yaml:"proxy_url"`
16+
Gemini gemini `yaml:"google_gemini"`
17+
Arkose arkose `yaml:"arkose"`
18+
Bing bing `yaml:"bing"`
19+
Coze coze `yaml:"coze"`
20+
Claude claude `yaml:"claude"`
2121
}
2222

2323
type httpsInfo struct {
@@ -27,9 +27,9 @@ type httpsInfo struct {
2727
}
2828

2929
type gemini struct {
30-
ProxyUrl string `yaml:"proxy_url"`
31-
Model string `yaml:"model"`
32-
ApiKeys []*geminiApiKey `yaml:"api_keys"`
30+
ProxyUrl string `yaml:"proxy_url"`
31+
Model string `yaml:"model"`
32+
ApiKeys []geminiApiKey `yaml:"api_keys"`
3333
}
3434

3535
type geminiApiKey struct {
@@ -50,9 +50,9 @@ type bing struct {
5050
}
5151

5252
type coze struct {
53-
ProxyUrl string `yaml:"proxy_url"`
54-
Discord *cozeDiscord `yaml:"discord"`
55-
ApiChat *cozeApiChat `yaml:"api_chat"`
53+
ProxyUrl string `yaml:"proxy_url"`
54+
Discord cozeDiscord `yaml:"discord"`
55+
ApiChat cozeApiChat `yaml:"api_chat"`
5656
}
5757

5858
type cozeDiscord struct {
@@ -67,8 +67,8 @@ type cozeDiscord struct {
6767
}
6868

6969
type cozeApiChat struct {
70-
AccessToken string `yaml:"access_token"`
71-
Bots []*cozeApiBot `yaml:"bots"`
70+
AccessToken string `yaml:"access_token"`
71+
Bots []cozeApiBot `yaml:"bots"`
7272
}
7373

7474
type cozeApiBot struct {
@@ -78,10 +78,10 @@ type cozeApiBot struct {
7878
}
7979

8080
type claude struct {
81-
ProxyUrl string `yaml:"proxy_url"`
82-
ApiVersion string `yaml:"api_version"`
83-
WebSessions []*websession `yaml:"web_sessions"`
84-
ApiKeys []*claudeApiKey `yaml:"api_keys"`
81+
ProxyUrl string `yaml:"proxy_url"`
82+
ApiVersion string `yaml:"api_version"`
83+
WebSessions []websession `yaml:"web_sessions"`
84+
ApiKeys []claudeApiKey `yaml:"api_keys"`
8585
}
8686

8787
type websession struct {

0 commit comments

Comments
 (0)