mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 05:08:32 +00:00
fix(opencode): pass configured headers to Copilot models (#32815)
This commit is contained in:
parent
8716c4309a
commit
ec50db334b
1 changed files with 1 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ export async function CopilotAuthPlugin(input: PluginInput): Promise<Hooks> {
|
|||
return CopilotModels.get(
|
||||
base(auth.enterpriseUrl),
|
||||
{
|
||||
...(provider.options?.headers as Record<string, string> | undefined),
|
||||
Authorization: `Bearer ${auth.refresh}`,
|
||||
"User-Agent": `opencode/${InstallationVersion}`,
|
||||
"X-GitHub-Api-Version": API_VERSION,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue