35
35
ChatWebhookUrl2 = ""
36
36
ChatWebhookUrl3 = ""
37
37
GistToken = ""
38
- OpenAIKey = ""
39
- OpenAIModel = "gpt-4o"
40
38
GoogleCloudProject = "default"
41
39
GoogleCloudRegion = "europe-west3-c"
42
40
GoogleCloudSSHKey = ""
@@ -59,8 +57,6 @@ type Config struct {
59
57
ChatWebhookUrl2 string `json:"chatwebhookurl2"`
60
58
ChatWebhookUrl3 string `json:"chatwebhookurl3"`
61
59
GistToken string `json:"gisttoken"`
62
- OpenAIKey string `json:"openaikey"`
63
- OpenAIModel string `json:"openaimodel"`
64
60
GoogleCloudProject string `json:"googlecloudproject"`
65
61
GoogleCloudRegion string `json:"googlecloudregion"`
66
62
GoogleCloudSSHKey string `json:"googlecloudsshkey"`
@@ -145,14 +141,6 @@ func ParseUserConfig() {
145
141
GistToken = userConfig .GistToken
146
142
}
147
143
148
- if len (userConfig .OpenAIKey ) > 0 {
149
- OpenAIKey = userConfig .OpenAIKey
150
- }
151
-
152
- if len (userConfig .OpenAIModel ) > 0 {
153
- OpenAIModel = userConfig .OpenAIModel
154
- }
155
-
156
144
if len (userConfig .GoogleCloudProject ) > 0 {
157
145
GoogleCloudProject = userConfig .GoogleCloudProject
158
146
}
@@ -206,8 +194,6 @@ func WriteUserConfig() {
206
194
userConfig .ChatWebhookUrl2 = ChatWebhookUrl2
207
195
userConfig .ChatWebhookUrl3 = ChatWebhookUrl3
208
196
userConfig .GistToken = GistToken
209
- userConfig .OpenAIKey = OpenAIKey
210
- userConfig .OpenAIModel = OpenAIModel
211
197
userConfig .GoogleCloudProject = GoogleCloudProject
212
198
userConfig .GoogleCloudRegion = GoogleCloudRegion
213
199
userConfig .GoogleCloudSSHKey = GoogleCloudSSHKey
0 commit comments