Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update internal/azuremodels/azure_client.go
Co-authored-by: Copilot <[email protected]>
  • Loading branch information
pelikhan and Copilot authored Jul 24, 2025
commit 7903afab145fe95b664e37b5d5f76d7c35c0aa23
3 changes: 2 additions & 1 deletion internal/azuremodels/azure_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@
if err == nil {
defer logFile.Close()
fmt.Fprintf(logFile, "### %s\nPOST %s\nAuthorization: Bearer {{$processEnv GITHUB_TOKEN}}\nContent-Type: application/json\nx-ms-useragent: github-cli-models\nx-ms-user-agent: github-cli-models\n\n%s\n\n",
time.Now().Format(time.RFC3339), inferenceURL, string(bodyBytes))
const logFormat = "### %s\nPOST %s\nAuthorization: Bearer {{$processEnv GITHUB_TOKEN}}\nContent-Type: application/json\nx-ms-useragent: github-cli-models\nx-ms-user-agent: github-cli-models\n\n%s\n\n"

Check failure on line 77 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

expected operand, found 'const' (typecheck)

Check failure on line 77 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected const, expected expression (typecheck)

Check failure on line 77 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected const, expected expression) (typecheck)

Check failure on line 77 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected const, expected expression) (typecheck)

Check failure on line 77 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected const, expected expression) (typecheck)

Check failure on line 77 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected keyword const, expected expression
fmt.Fprintf(logFile, logFormat, time.Now().Format(time.RFC3339), inferenceURL, string(bodyBytes))

Check failure on line 78 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

missing ',' before newline in argument list (typecheck)
}

Check failure on line 79 in internal/azuremodels/azure_client.go

View workflow job for this annotation

GitHub Actions / lint

expected operand, found '}' (typecheck)
}

httpReq, err := http.NewRequestWithContext(ctx, http.MethodPost, inferenceURL, body)
Expand Down
Loading