Skip to content

Commit 1cfe0cf

Browse files
committed
fix: add only one add for the command not two
1 parent eb3d921 commit 1cfe0cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var setCmd = &cobra.Command{
4646
},
4747
}
4848

49-
func validateEndpointURL(val interface{}) error {
49+
func validateEndpointURL(val any) error {
5050
endpoint, ok := val.(string)
5151
if !ok {
5252
return fmt.Errorf("endpoint must be a string")
@@ -122,7 +122,7 @@ func runInteractiveConfig() {
122122
// Dynamically generate available models for OpenAI
123123
availableModels := map[string][]string{
124124
"openai": {},
125-
"copilot": {"gpt-4o"}, // TODO: update if copilot models are dynamic
125+
"copilot": {"gpt-5-mini"}, // TODO: update if copilot models are dynamic
126126
}
127127

128128
modelDisplayToID := map[string]string{}
@@ -213,7 +213,6 @@ func runInteractiveConfig() {
213213
}
214214

215215
func init() {
216-
RootCmd.AddCommand(configCmd)
217216
configCmd.AddCommand(getCmd)
218217
configCmd.AddCommand(setCmd)
219218
}

0 commit comments

Comments
 (0)