| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Workers AI models via cloudflare-ai-gateway fail with 401 because createUnified() is called without an apiKey. The ai-gateway-provider package injects CF_TEMP_TOKEN as a placeholder, then strips it before sending — leaving the sub-request with no authorization header. Passing the real API key means the Authorization header survives the stripping logic and reaches the gateway correctly. Fixes anomalyco#32051
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
* upstream: (4536 commits) fix(opencode): sanitize OpenAI MCP tool schemas (anomalyco#32489) chore: update nix node_modules hashes fix(provider): pass apiKey to createUnified for Cloudflare AI Gateway (anomalyco#32052) chore: generate feat(app): make session timelines much faster AND without flicker or scroll jumps (anomalyco#32331) chore: update nix node_modules hashes chore: generate experiment: better web picker using @pierre/tree (anomalyco#31208) fix(mcp): default tool schema properties (anomalyco#32568) fix(web): persist docs language selection (anomalyco#32551) fix(tui): render move errors inline (anomalyco#32241) Revert "fix(mcp): type tool error content" fix(mcp): enable progress timeout resets (anomalyco#32477) fix(mcp): stop idle OAuth callback server (anomalyco#32245) chore: generate chore: update nix node_modules hashes fix(mcp): type tool error content fix(stats): align homepage model ranks fix(mcp): handle tool result errors (anomalyco#32244) fix(stats): rank model pages by week ...
|
i have tested the lest version for windows this feauture not added |
Sorry, something went wrong.
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
… (#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…anomalyco#32052) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Issue for this PR
Closes #32051
Type of change
What does this PR do?
createUnified() is called without an apiKey in the cloudflare-ai-gateway provider. The ai-gateway-provider package injects a placeholder CF_TEMP_TOKEN, then strips it before sending the universal endpoint request — leaving the Workers AI sub-request with no authorization header. This causes a 401 for all Workers AI models. BYOK models (Anthropic/OpenAI) are unaffected because they carry their own real API keys.
The fix passes the API key to createUnified({ apiKey }) so the real token is set on the sub-request Authorization header. The stripping logic only removes headers containing the literal CF_TEMP_TOKEN, so real tokens survive.
How did you verify your code works?
Screenshots / recordings
N/A — no UI changes.
Checklist