Skip to content

fix(provider): route big-pickle through chat completions#28149

Open
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/issue-28138-big-pickle-format
Open

fix(provider): route big-pickle through chat completions#28149
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/issue-28138-big-pickle-format

Conversation

@mturac
Copy link
Copy Markdown

@mturac mturac commented May 18, 2026

Issue for this PR

Closes #28138

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Normalizes the opencode big-pickle models.dev entry so it uses the chat-completions-compatible SDK route instead of the messages-style route. That keeps requests away from /zen/v1/messages, which is the failing path reported in the issue, and adds a regression test for this normalization case.

How did you verify your code works?

  • bun test test/provider/provider.test.ts --timeout 30000 from packages/opencode
  • bun run --cwd packages/opencode typecheck
  • bunx prettier --check packages/opencode/src/provider/provider.ts packages/opencode/test/provider/provider.test.ts
  • git diff --check
  • bunx oxlint packages/opencode/src/provider/provider.ts packages/opencode/test/provider/provider.test.ts (0 errors; existing warnings only)

Screenshots / recordings

N/A; provider routing change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@toastsandwich
Copy link
Copy Markdown

lgtm

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.

Big Pickle not working.

2 participants