fix(instrumentation-utils): Add missing modality field to block mappers document cases#921
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 1 minutes and 39 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAnthropic and OpenAI content-block mappers were changed to always emit Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/instrumentation-anthropic/test/content-block-mapper.test.ts`:
- Around line 213-220: Remove the stray semicolon that precedes the test
declaration so the test starts with the `it("document/file result has modality:
document", ...)` call; edit the test block containing `it("document/file result
has modality: document"...` (which uses `mapAnthropicContentBlock`) to delete
the leading `;` so the empty statement is removed and formatting/Prettier errors
are resolved.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 4ebc73ba-4e3c-4662-89fd-3668901cbd0c
📒 Files selected for processing (3)
packages/instrumentation-anthropic/test/content-block-mapper.test.tspackages/instrumentation-anthropic/test/mapper-fixtures.jsonpackages/instrumentation-openai/test/message-helpers.test.ts
packages/instrumentation-anthropic/test/content-block-mapper.test.ts
Outdated
Show resolved
Hide resolved
c96aee7 to
ddb9a14
Compare
Summary by CodeRabbit