Commit dede3b2
fix: remove /v1 prefix from OpenCode baseURL
The Copilot API at api.githubcopilot.com uses /chat/completions
(no /v1 prefix). The @ai-sdk/openai-compatible provider appends
/chat/completions to baseURL, so with /v1 it was sending
/v1/chat/completions which returned 404.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 15d7a2b commit dede3b2
1 file changed
+1
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments