chore: restore prior formatting for clearer provider diffs

This commit is contained in:
chanchann 2026-02-28 03:03:21 +00:00
parent 0a02d462f0
commit b2ec2f1ad5
2 changed files with 4 additions and 4 deletions

View file

@ -461,9 +461,9 @@ type ModelConfig struct {
Model string `json:"model"` // Protocol/model-identifier (e.g., "openai/gpt-4o", "anthropic/claude-sonnet-4.6") Model string `json:"model"` // Protocol/model-identifier (e.g., "openai/gpt-4o", "anthropic/claude-sonnet-4.6")
// HTTP-based providers // HTTP-based providers
APIBase string `json:"api_base,omitempty"` // API endpoint URL APIBase string `json:"api_base,omitempty"` // API endpoint URL
APIKey string `json:"api_key"` // API authentication key APIKey string `json:"api_key"` // API authentication key
Proxy string `json:"proxy,omitempty"` // HTTP proxy URL Proxy string `json:"proxy,omitempty"` // HTTP proxy URL
Headers map[string]string `json:"headers,omitempty"` // Custom HTTP headers Headers map[string]string `json:"headers,omitempty"` // Custom HTTP headers
// Special providers (CLI-based, OAuth, etc.) // Special providers (CLI-based, OAuth, etc.)

View file

@ -41,7 +41,7 @@ func NewHTTPProviderWithOptions(
) *HTTPProvider { ) *HTTPProvider {
opts := []openai_compat.Option{ opts := []openai_compat.Option{
openai_compat.WithMaxTokensField(maxTokensField), openai_compat.WithMaxTokensField(maxTokensField),
openai_compat.WithRequestTimeout(time.Duration(requestTimeoutSeconds) * time.Second), openai_compat.WithRequestTimeout(time.Duration(requestTimeoutSeconds)*time.Second),
} }
if customHeaders != nil { if customHeaders != nil {
opts = append(opts, openai_compat.WithCustomHeaders(customHeaders)) opts = append(opts, openai_compat.WithCustomHeaders(customHeaders))