Commit a8e8888
fix: route OpenCode via Copilot, not OpenAI
Remove OPENAI_API_KEY from workflow env so the api-proxy's port 10004
falls through to the Copilot route (COPILOT_GITHUB_TOKEN) instead of
routing to api.openai.com with an invalid key.
The api-proxy resolveOpenCodeRoute priority is:
OPENAI_API_KEY > ANTHROPIC_API_KEY > Copilot token
With OPENAI_API_KEY removed, it uses the Copilot token to route
to api.githubcopilot.com (already in allowed domains).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1e5e817 commit a8e8888
1 file changed
+5
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments