Skip to content

remove openaikey/openaimodel unused config options #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,6 @@ if a file called `writeup.md` already exists the command will abort
"chatwebhookurl2": "",
"chatwebhookurl3": "",
"gisttoken": "",
"openaikey": "",
"openaimodel": "",
"googlecloudproject": "",
"googlecloudregion": "",
"googlecloudsshkey": "",
Expand Down
14 changes: 0 additions & 14 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ var (
ChatWebhookUrl2 = ""
ChatWebhookUrl3 = ""
GistToken = ""
OpenAIKey = ""
OpenAIModel = "gpt-4o"
GoogleCloudProject = "default"
GoogleCloudRegion = "europe-west3-c"
GoogleCloudSSHKey = ""
Expand All @@ -59,8 +57,6 @@ type Config struct {
ChatWebhookUrl2 string `json:"chatwebhookurl2"`
ChatWebhookUrl3 string `json:"chatwebhookurl3"`
GistToken string `json:"gisttoken"`
OpenAIKey string `json:"openaikey"`
OpenAIModel string `json:"openaimodel"`
GoogleCloudProject string `json:"googlecloudproject"`
GoogleCloudRegion string `json:"googlecloudregion"`
GoogleCloudSSHKey string `json:"googlecloudsshkey"`
Expand Down Expand Up @@ -145,14 +141,6 @@ func ParseUserConfig() {
GistToken = userConfig.GistToken
}

if len(userConfig.OpenAIKey) > 0 {
OpenAIKey = userConfig.OpenAIKey
}

if len(userConfig.OpenAIModel) > 0 {
OpenAIModel = userConfig.OpenAIModel
}

if len(userConfig.GoogleCloudProject) > 0 {
GoogleCloudProject = userConfig.GoogleCloudProject
}
Expand Down Expand Up @@ -206,8 +194,6 @@ func WriteUserConfig() {
userConfig.ChatWebhookUrl2 = ChatWebhookUrl2
userConfig.ChatWebhookUrl3 = ChatWebhookUrl3
userConfig.GistToken = GistToken
userConfig.OpenAIKey = OpenAIKey
userConfig.OpenAIModel = OpenAIModel
userConfig.GoogleCloudProject = GoogleCloudProject
userConfig.GoogleCloudRegion = GoogleCloudRegion
userConfig.GoogleCloudSSHKey = GoogleCloudSSHKey
Expand Down