From cd4484d07fe44d31db833ff6b86561bddedb3853 Mon Sep 17 00:00:00 2001 From: patriceckhart Date: Sun, 24 May 2026 12:00:21 +0200 Subject: [PATCH] Run gofmt on provider files --- internal/provider/amazon_bedrock.go | 10 +++++----- internal/provider/azure_openai.go | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/internal/provider/amazon_bedrock.go b/internal/provider/amazon_bedrock.go index edbb179..4acaa88 100644 --- a/internal/provider/amazon_bedrock.go +++ b/internal/provider/amazon_bedrock.go @@ -205,8 +205,8 @@ type bedrockToolSpec struct { } type bedrockRequest struct { - Messages []bedrockMessage `json:"messages"` - System []map[string]string `json:"system,omitempty"` + Messages []bedrockMessage `json:"messages"` + System []map[string]string `json:"system,omitempty"` InferenceConfig struct { MaxTokens int `json:"maxTokens,omitempty"` Temperature *float32 `json:"temperature,omitempty"` @@ -445,9 +445,9 @@ func (c *bedrockClient) runStream(ctx context.Context, resp *http.Response, req case "metadata": var d struct { Usage struct { - InputTokens int `json:"inputTokens"` - OutputTokens int `json:"outputTokens"` - CacheReadInputTokens int `json:"cacheReadInputTokens"` + InputTokens int `json:"inputTokens"` + OutputTokens int `json:"outputTokens"` + CacheReadInputTokens int `json:"cacheReadInputTokens"` CacheWriteInputTokens int `json:"cacheWriteInputTokens"` } `json:"usage"` } diff --git a/internal/provider/azure_openai.go b/internal/provider/azure_openai.go index 2c3230c..72fc3ef 100644 --- a/internal/provider/azure_openai.go +++ b/internal/provider/azure_openai.go @@ -34,8 +34,9 @@ const defaultAzureAPIVersion = "2024-10-21" // azureRewriteTransport rewrites every outgoing OpenAI Chat Completions // URL into the Azure deployment-scoped shape: -// /openai/v1/chat/completions -> -// /openai/deployments/{model}/chat/completions?api-version={v} +// +// /openai/v1/chat/completions -> +// /openai/deployments/{model}/chat/completions?api-version={v} // // The model id is read from the JSON body of the POST so we don't need to // thread it through the client at construction time. This keeps the