返回 DeepSeek-Reasonix
provider_probe.go
根目录 / internal / config / provider_probe.go
1 package config
2
3 import "strings"
4
5 // WithAPIKeyForProbe returns a private copy with a draft credential. It neither
6 // persists the value nor mutates process environment shared by other requests.
7 func (e ProviderEntry) WithAPIKeyForProbe(value string) ProviderEntry {
8 e.resolvedAPIKey = strings.TrimSpace(value)
9 e.resolvedSource = CredentialSource{Kind: CredentialSourceEnvironment, Label: "settings probe"}
10 return e
11 }
12
12 lines GO