diff --git a/pkg/config/config.go b/pkg/config/config.go index 9eadef797..440fb31e4 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -461,9 +461,9 @@ type ModelConfig struct { Model string `json:"model"` // Protocol/model-identifier (e.g., "openai/gpt-4o", "anthropic/claude-sonnet-4.6") // HTTP-based providers - APIBase string `json:"api_base,omitempty"` // API endpoint URL - APIKey string `json:"api_key"` // API authentication key - Proxy string `json:"proxy,omitempty"` // HTTP proxy URL + APIBase string `json:"api_base,omitempty"` // API endpoint URL + APIKey string `json:"api_key"` // API authentication key + Proxy string `json:"proxy,omitempty"` // HTTP proxy URL Headers map[string]string `json:"headers,omitempty"` // Custom HTTP headers // Special providers (CLI-based, OAuth, etc.) diff --git a/pkg/providers/http_provider.go b/pkg/providers/http_provider.go index aa35f1db5..7f7fbd7f7 100644 --- a/pkg/providers/http_provider.go +++ b/pkg/providers/http_provider.go @@ -41,7 +41,7 @@ func NewHTTPProviderWithOptions( ) *HTTPProvider { opts := []openai_compat.Option{ openai_compat.WithMaxTokensField(maxTokensField), - openai_compat.WithRequestTimeout(time.Duration(requestTimeoutSeconds) * time.Second), + openai_compat.WithRequestTimeout(time.Duration(requestTimeoutSeconds)*time.Second), } if customHeaders != nil { opts = append(opts, openai_compat.WithCustomHeaders(customHeaders))