MCPcopy Index your code
hub / github.com/coder/coder / UpdateAIProviderRequest

Struct UpdateAIProviderRequest

codersdk/aiproviders.go:265–271  ·  view source on GitHub ↗

UpdateAIProviderRequest is the payload for partially updating an AI provider. At least one field must be non-nil. Pointer fields distinguish "not sent" (nil) from "set to empty/zero" (a pointer to the zero value). When APIKeys is non-nil, the supplied list describes the post-patch state of the key s

Source from the content-addressed store, hash-verified

263// AIProviderKeyMutation for the per-entry semantics. An empty slice
264// clears all keys.
265type UpdateAIProviderRequest struct {
266 DisplayName *string `json:"display_name,omitempty"`
267 Enabled *bool `json:"enabled,omitempty"`
268 BaseURL *string `json:"base_url,omitempty"`
269 APIKeys *[]AIProviderKeyMutation `json:"api_keys,omitempty"`
270 Settings *AIProviderSettings `json:"settings,omitempty"`
271}
272
273// AIProviderKeyMutation describes the intended state of a single key
274// in an UpdateAIProviderRequest. Exactly one of ID or APIKey must be

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected