Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds Runware provider support across routing, headers, model catalog, and CI, and updates streaming-to-OpenAI token usage, finish reasoning, and tool-call metadata handling. ChangesRunware Provider Integration
Streaming Transform Refactors
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/models/src/models/google.ts`:
- Around line 850-877: Add the missing cached-input billing field to the Runware
Gemini model mapping so pricing is consistent with the neighboring Runware
entries. Update the object for the Gemini SKU in google.ts alongside the other
pricing fields in the providerId: "runware" mapping, and set cachedInputPrice
using the same pricing conventions already used for gemini-3.5-flash and
gemma-4-31b-it.
In `@packages/models/src/models/openai.ts`:
- Around line 1473-1486: The Runware GPT-5.4 model mappings are missing cached
input pricing, so add cachedInputPrice to the relevant entries in openai.ts for
gpt-5.4, gpt-5.4-mini, and gpt-5.4-nano. Use the existing adjacent OpenAI/Azure
mappings and the gpt-5.5 Runware entry as the reference pattern, and update the
Runware model objects so selector/export pricing paths can read cachedInputPrice
directly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 1093c333-04f1-4597-adf9-fc1f33da7870
📒 Files selected for processing (14)
.github/workflows/e2e.ymlapps/gateway/src/chat/tools/transform-streaming-to-openai.tspackages/actions/src/get-provider-endpoint.tspackages/actions/src/get-provider-headers.tspackages/models/src/models/alibaba.tspackages/models/src/models/anthropic.tspackages/models/src/models/deepseek.tspackages/models/src/models/google.tspackages/models/src/models/minimax.tspackages/models/src/models/moonshot.tspackages/models/src/models/openai.tspackages/models/src/models/xai.tspackages/models/src/models/zai.tspackages/models/src/providers.ts
- Introduced `cachedInputPrice` for Google models, enhancing pricing details for both standard and tiered pricing structures. - Added `cachedInputPrice` for OpenAI models, providing more transparency in pricing for users. - Updated pricing tiers for both providers to reflect the new cached input prices.
Hi,
I made this with Opus and tested all the added models one by one manually. ✌️
Summary by CodeRabbit