(p llm.Provider)
| 908 | } |
| 909 | |
| 910 | func officialAPIKeyRequiredError(p llm.Provider) string { |
| 911 | if p.EnvVar != "" { |
| 912 | return fmt.Sprintf("API key is required (or set $%s)", p.EnvVar) |
| 913 | } |
| 914 | return "API key is required" |
| 915 | } |
| 916 | |
| 917 | func (m providerTUIModel) apiKeyStepCanConfirm() (ok bool, errMsg string) { |
| 918 | if m.apiKeyOriginal != "" { |
no outgoing calls