Repository navigation
fix(arena): keep PDF requests away from providers that take no files - #325
Open
vikas-bottomless wants to merge 2 commits into
Open
vikas-bottomless wants to merge 2 commits into
vikas-bottomless wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
A contestant that reads a PDF can fail with
404 No endpoints found that support file input: its encrypted reasoning pins the call to a provider that takes no files (GPT-6.1 Sol on Amazon Bedrock). Requests with a file now drop that encrypted reasoning on the way out, so OpenRouter can pick a provider that takes it. If a PDF is still refused with that 404, the proxy retries once with OCR. Takes effect once the control plane pins this arena-service.Testing
bun test src/file-input-routing.test.ts src/openrouter.test.ts src/generation-capture.test.ts(arena-service, Bun 1.4.4): 115 passed, 1 skipped; 5 of the new tests fail withmain'sopenrouter.tsbun test src(arena-service): 252 passed, 1 skipped, 2 failed; the same 2 fail onmainbecause they needOPENCODE_ARENA_MONGODB_URInpm run typecheck,npm run lint,npm run format:checkand arena-service'stsgo --noEmit: passorder: ["amazon-bedrock"]set for the test, prompt: think, then read a PDF, then use tools. Onmain, both sides failed with the 404 above, pinned to Bedrock's endpoint (7 calls also failed earlier with a 502, cause unknown). With this PR, both finished with the right answer and no refusals; after the PDF their calls moved to Azure and OpenAIChecklist
npm run typecheck,npm run lintandnpm run formatpass