Run gofmt on provider files
- commit
- cd4484d07fe44d31db833ff6b86561bddedb3853
- author
- patriceckhart · · 2026-05-24 10:00 UTC
- parent
- 388e672
- signature
- unsigned
- refs
- tag: v0.1.92
2 files · +8 -7
M internal/provider/amazon_bedrock.go +5 -5
| @@ -205,8 +205,8 @@ type bedrockToolSpec struct { | |||
| 205 | 205 | } | |
| 206 | 206 | ||
| 207 | 207 | type bedrockRequest struct { | |
| 208 | - | Messages []bedrockMessage `json:"messages"` | |
| 209 | - | System []map[string]string `json:"system,omitempty"` | |
| 208 | + | Messages []bedrockMessage `json:"messages"` | |
| 209 | + | System []map[string]string `json:"system,omitempty"` | |
| 210 | 210 | InferenceConfig struct { | |
| 211 | 211 | MaxTokens int `json:"maxTokens,omitempty"` | |
| 212 | 212 | Temperature *float32 `json:"temperature,omitempty"` | |
| @@ -445,9 +445,9 @@ func (c *bedrockClient) runStream(ctx context.Context, resp *http.Response, req | |||
| 445 | 445 | case "metadata": | |
| 446 | 446 | var d struct { | |
| 447 | 447 | Usage struct { | |
| 448 | - | InputTokens int `json:"inputTokens"` | |
| 449 | - | OutputTokens int `json:"outputTokens"` | |
| 450 | - | CacheReadInputTokens int `json:"cacheReadInputTokens"` | |
| 448 | + | InputTokens int `json:"inputTokens"` | |
| 449 | + | OutputTokens int `json:"outputTokens"` | |
| 450 | + | CacheReadInputTokens int `json:"cacheReadInputTokens"` | |
| 451 | 451 | CacheWriteInputTokens int `json:"cacheWriteInputTokens"` | |
| 452 | 452 | } `json:"usage"` | |
| 453 | 453 | } | |
| @@ -205,8 +205,8 @@ type bedrockToolSpec struct { | |||||
| 205 | } | 205 | } | ||
| 206 | 206 | ||||
| 207 | type bedrockRequest struct { | 207 | type bedrockRequest struct { | ||
| 208 | - | Messages []bedrockMessage `json:"messages"` | 208 | + | Messages []bedrockMessage `json:"messages"` |
| 209 | - | System []map[string]string `json:"system,omitempty"` | 209 | + | System []map[string]string `json:"system,omitempty"` |
| 210 | InferenceConfig struct { | 210 | InferenceConfig struct { | ||
| 211 | MaxTokens int `json:"maxTokens,omitempty"` | 211 | MaxTokens int `json:"maxTokens,omitempty"` | ||
| 212 | Temperature *float32 `json:"temperature,omitempty"` | 212 | Temperature *float32 `json:"temperature,omitempty"` | ||
| @@ -445,9 +445,9 @@ func (c *bedrockClient) runStream(ctx context.Context, resp *http.Response, req | |||||
| 445 | case "metadata": | 445 | case "metadata": | ||
| 446 | var d struct { | 446 | var d struct { | ||
| 447 | Usage struct { | 447 | Usage struct { | ||
| 448 | - | InputTokens int `json:"inputTokens"` | 448 | + | InputTokens int `json:"inputTokens"` |
| 449 | - | OutputTokens int `json:"outputTokens"` | 449 | + | OutputTokens int `json:"outputTokens"` |
| 450 | - | CacheReadInputTokens int `json:"cacheReadInputTokens"` | 450 | + | CacheReadInputTokens int `json:"cacheReadInputTokens"` |
| 451 | CacheWriteInputTokens int `json:"cacheWriteInputTokens"` | 451 | CacheWriteInputTokens int `json:"cacheWriteInputTokens"` | ||
| 452 | } `json:"usage"` | 452 | } `json:"usage"` | ||
| 453 | } | 453 | } | ||
M internal/provider/azure_openai.go +3 -2
| @@ -34,8 +34,9 @@ const defaultAzureAPIVersion = "2024-10-21" | |||
| 34 | 34 | ||
| 35 | 35 | // azureRewriteTransport rewrites every outgoing OpenAI Chat Completions | |
| 36 | 36 | // URL into the Azure deployment-scoped shape: | |
| 37 | - | // /openai/v1/chat/completions -> | |
| 38 | - | // /openai/deployments/{model}/chat/completions?api-version={v} | |
| 37 | + | // | |
| 38 | + | // /openai/v1/chat/completions -> | |
| 39 | + | // /openai/deployments/{model}/chat/completions?api-version={v} | |
| 39 | 40 | // | |
| 40 | 41 | // The model id is read from the JSON body of the POST so we don't need to | |
| 41 | 42 | // thread it through the client at construction time. This keeps the | |
| @@ -34,8 +34,9 @@ const defaultAzureAPIVersion = "2024-10-21" | |||||
| 34 | 34 | ||||
| 35 | // azureRewriteTransport rewrites every outgoing OpenAI Chat Completions | 35 | // azureRewriteTransport rewrites every outgoing OpenAI Chat Completions | ||
| 36 | // URL into the Azure deployment-scoped shape: | 36 | // URL into the Azure deployment-scoped shape: | ||
| 37 | - | // /openai/v1/chat/completions -> | 37 | + | // |
| 38 | - | // /openai/deployments/{model}/chat/completions?api-version={v} | 38 | + | // /openai/v1/chat/completions -> |
| 39 | + | // /openai/deployments/{model}/chat/completions?api-version={v} | |||
| 39 | // | 40 | // | ||
| 40 | // The model id is read from the JSON body of the POST so we don't need to | 41 | // The model id is read from the JSON body of the POST so we don't need to | ||
| 41 | // thread it through the client at construction time. This keeps the | 42 | // thread it through the client at construction time. This keeps the | ||