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
| 263 | // AIProviderKeyMutation for the per-entry semantics. An empty slice |
| 264 | // clears all keys. |
| 265 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected