From b2ec2f1ad5962a1a643999190239a9415c061f33 Mon Sep 17 00:00:00 2001 From: chanchann Date: Sat, 28 Feb 2026 03:03:21 +0000 Subject: [PATCH] chore: restore prior formatting for clearer provider diffs --- pkg/config/config.go | 6 +++--- pkg/providers/http_provider.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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))