Skip to content

Commit 9ae48ca

Browse files
authored
Merge pull request #209 from dmur1/fix-unused-config-options-#207
remove openaikey/openaimodel unused config options
2 parents cb3b983 + 67e92ba commit 9ae48ca

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,6 @@ if a file called `writeup.md` already exists the command will abort
592592
"chatwebhookurl2": "",
593593
"chatwebhookurl3": "",
594594
"gisttoken": "",
595-
"openaikey": "",
596-
"openaimodel": "",
597595
"googlecloudproject": "",
598596
"googlecloudregion": "",
599597
"googlecloudsshkey": "",

config/config.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ var (
3535
ChatWebhookUrl2 = ""
3636
ChatWebhookUrl3 = ""
3737
GistToken = ""
38-
OpenAIKey = ""
39-
OpenAIModel = "gpt-4o"
4038
GoogleCloudProject = "default"
4139
GoogleCloudRegion = "europe-west3-c"
4240
GoogleCloudSSHKey = ""
@@ -59,8 +57,6 @@ type Config struct {
5957
ChatWebhookUrl2 string `json:"chatwebhookurl2"`
6058
ChatWebhookUrl3 string `json:"chatwebhookurl3"`
6159
GistToken string `json:"gisttoken"`
62-
OpenAIKey string `json:"openaikey"`
63-
OpenAIModel string `json:"openaimodel"`
6460
GoogleCloudProject string `json:"googlecloudproject"`
6561
GoogleCloudRegion string `json:"googlecloudregion"`
6662
GoogleCloudSSHKey string `json:"googlecloudsshkey"`
@@ -145,14 +141,6 @@ func ParseUserConfig() {
145141
GistToken = userConfig.GistToken
146142
}
147143

148-
if len(userConfig.OpenAIKey) > 0 {
149-
OpenAIKey = userConfig.OpenAIKey
150-
}
151-
152-
if len(userConfig.OpenAIModel) > 0 {
153-
OpenAIModel = userConfig.OpenAIModel
154-
}
155-
156144
if len(userConfig.GoogleCloudProject) > 0 {
157145
GoogleCloudProject = userConfig.GoogleCloudProject
158146
}
@@ -206,8 +194,6 @@ func WriteUserConfig() {
206194
userConfig.ChatWebhookUrl2 = ChatWebhookUrl2
207195
userConfig.ChatWebhookUrl3 = ChatWebhookUrl3
208196
userConfig.GistToken = GistToken
209-
userConfig.OpenAIKey = OpenAIKey
210-
userConfig.OpenAIModel = OpenAIModel
211197
userConfig.GoogleCloudProject = GoogleCloudProject
212198
userConfig.GoogleCloudRegion = GoogleCloudRegion
213199
userConfig.GoogleCloudSSHKey = GoogleCloudSSHKey

0 commit comments

Comments
 (0)