Skip to content

Conversation

@tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented Jan 6, 2026

Summary by cubic

Fix LLM streaming by catching OpenRouter provider errors and returning correct HTTP responses. Updated AI SDK dependencies for compatibility.

  • Bug Fixes

    • Wrap doStream in try/catch and detect APICallError.
    • Return Response with provider status, headers, and body.
    • Fallback to 500 for unexpected errors.
  • Dependencies

    • @ai-sdk/provider → ^3.0.2
    • @ai-sdk/provider-utils → ^4.0.4
    • @openrouter/ai-sdk-provider → ^1.5.4

Written for commit 54a7656. Summary will update on new commits.

@tlgimenes tlgimenes merged commit 84e85fa into main Jan 6, 2026
3 of 7 checks passed
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

🚀 Preview Deployments Ready!

Your changes have been deployed to preview environments:

📦 apify

🔗 View Preview

📦 connection-binding

🔗 View Preview

📦 data-for-seo

🔗 View Preview

📦 datajud

🔗 View Preview

📦 db-binding

🔗 View Preview

📦 event-bus

🔗 View Preview

📦 gemini-pro-vision

🔗 View Preview

📦 google-calendar

🔗 View Preview

📦 grain-official

🔗 View Preview

📦 mcp-studio

🔗 View Preview

📦 meta-ads

🔗 View Preview

📦 nanobanana

🔗 View Preview

📦 object-storage

🔗 View Preview

📦 openrouter

🔗 View Preview

📦 perplexity

🔗 View Preview

📦 pinecone

🔗 View Preview

📦 readonly-sql

🔗 View Preview

📦 reddit

🔗 View Preview

📦 registry

🔗 View Preview

📦 replicate

🔗 View Preview

📦 sora

🔗 View Preview

📦 template-minimal

🔗 View Preview

📦 veo

🔗 View Preview

📦 whisper

🔗 View Preview

These previews will be automatically updated with new commits to this PR.


Deployed from commit: 255026a

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

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.

2 participants