detached cd4484d

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 {
205205 }
206206
207207 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"`
210210 InferenceConfig struct {
211211 MaxTokens int `json:"maxTokens,omitempty"`
212212 Temperature *float32 `json:"temperature,omitempty"`
@@ -445,9 +445,9 @@ func (c *bedrockClient) runStream(ctx context.Context, resp *http.Response, req
445445 case "metadata":
446446 var d struct {
447447 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"`
451451 CacheWriteInputTokens int `json:"cacheWriteInputTokens"`
452452 } `json:"usage"`
453453 }
@@ -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"
3434
3535 // azureRewriteTransport rewrites every outgoing OpenAI Chat Completions
3636 // 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}
3940 //
4041 // The model id is read from the JSON body of the POST so we don't need to
4142 // 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 Completions35 // 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 to41 // 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 the42 // thread it through the client at construction time. This keeps the

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close