| 281 | func askForAPIKey(configType string) string { |
| 282 | fmt.Println(style.Accent(fmt.Sprintf("%s Set API key for %s? (Enter to skip or paste)", style.IconAngleRight, configType))) |
| 283 | reader := bufio.NewReader(os.Stdin) |
| 284 | input, _ := reader.ReadString('\n') |
| 285 | input = strings.TrimSpace(input) |
| 286 | if input == "" { |
| 287 | clip, _ := clipboard.ReadAll() |
| 288 | return strings.TrimSpace(clip) |
| 289 | } |
| 290 | return input |
| 291 | } |
| 292 | |
| 293 | func askForModel(configType string) string { |
| 294 | fmt.Println(style.Accent(fmt.Sprintf("%s Set OpenRouter model for %s? (e.g. openai/gpt-4o-mini, Enter to skip)", style.IconAngleRight, configType))) |