Skip to content

Commit 759ce10

Browse files
mattappersonclaude
andcommitted
fix: import toChatMessage from correct module in e2e tests
The toChatMessage function is exported from chat-compat.js, not sdk.js. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent a615793 commit 759ce10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/call-model.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import type { OpenResponsesFunctionCallOutput } from '../../src/models/openrespo
55

66
import { beforeAll, describe, expect, it } from 'vitest';
77
import { z } from 'zod/v4';
8-
import { OpenRouter, ToolType, toChatMessage } from '../../src/sdk/sdk.js';
8+
import { OpenRouter, ToolType } from '../../src/sdk/sdk.js';
9+
import { toChatMessage } from '../../src/lib/chat-compat.js';
910
import { OpenResponsesNonStreamingResponse } from '../../src/models/openresponsesnonstreamingresponse.js';
1011
import { OpenResponsesStreamEvent } from '../../src/models/openresponsesstreamevent.js';
1112

0 commit comments

Comments
 (0)