Skip to content

Avoid duplicate OpenCode Go auth headers - #5422

Draft
chrarnoldus wants to merge 1 commit into
mainfrom
fix/opencode-go-messages-x-api-key
Draft

Avoid duplicate OpenCode Go auth headers#5422
chrarnoldus wants to merge 1 commit into
mainfrom
fix/opencode-go-messages-x-api-key

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • select x-api-key as the OpenCode Go auth header for Messages API requests
  • retain bearer authorization for Chat Completions and Responses requests
  • remove manual extra-header injection so each request sends exactly one API credential header

Testing

  • CI only; isolated dependency setup exceeded the local environment time limit

@chrarnoldus chrarnoldus self-assigned this Aug 21, 2026
@kilo-code-bot

kilo-code-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • apps/web/src/lib/ai-gateway/providers/direct-byok/opencode-go.ts
  • apps/web/src/lib/ai-gateway/providers/direct-byok/opencode-go.test.ts

Reviewed by grok-4.6 · Input: 45.2K · Output: 7.6K · Cached: 314.9K

Review guidance: REVIEW.md from base branch main

@chrarnoldus
chrarnoldus marked this pull request as draft August 21, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant