MCPcopy Create free account
hub / github.com/alibaba/open-code-review / officialAPIKeyRequiredError

Function officialAPIKeyRequiredError

cmd/opencodereview/provider_tui.go:910–915  ·  view source on GitHub ↗
(p llm.Provider)

Source from the content-addressed store, hash-verified

908}
909
910func 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
917func (m providerTUIModel) apiKeyStepCanConfirm() (ok bool, errMsg string) {
918 if m.apiKeyOriginal != "" {

Callers 2

apiKeyStepCanConfirmMethod · 0.85

Calls

no outgoing calls

Tested by 1