fix: address linter errors

- Fix HTTP header canonical form: "x-api-key" → "X-API-Key"
- Fix HTTP header canonical form: "anthropic-version" → "Anthropic-Version"
- Format imports with gci (standard, default, localmodule order)
- Format code with golines (max line length 120)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Zane Tung 2026-03-10 11:14:35 +08:00
parent 25725005df
commit c748a86f1e

View file

@ -107,8 +107,8 @@ func (p *Provider) Chat(
// Set headers // Set headers
req.Header.Set("Content-Type", "application/json") req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", p.apiKey) req.Header.Set("X-API-Key", p.apiKey)
req.Header.Set("anthropic-version", defaultAPIVersion) req.Header.Set("Anthropic-Version", defaultAPIVersion)
// Execute request // Execute request
resp, err := p.httpClient.Do(req) resp, err := p.httpClient.Do(req)