Run gofmt on provider files

This commit is contained in:
patriceckhart 2026-05-24 12:00:21 +02:00
parent 388e6720ae
commit cd4484d07f
2 changed files with 8 additions and 7 deletions

View file

@ -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"`
}

View file

@ -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