Skip to content

Commit ee012d3

Browse files
committed
chore: remove unrelated vercelStreamConverter changes
Per reviewer feedback — keeping this PR focused on the system-message tools parser fix.
1 parent 72cfabf commit ee012d3

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

packages/openai-adapters/src/test/vercelStreamConverter.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ describe("convertVercelStreamPart", () => {
3434
const result = convertVercelStreamPart(part, options);
3535

3636
expect(result).not.toBeNull();
37-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
38-
expect((result?.choices[0].delta as any).reasoning_content).toBe(
39-
"Let me think...",
40-
);
37+
expect(result?.choices[0].delta.content).toBe("Let me think...");
4138
});
4239

4340
test("returns null for tool-call (handled by tool-input-start/delta)", () => {

packages/openai-adapters/src/vercelStreamConverter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ export function convertVercelStreamPart(
8686
});
8787

8888
case "reasoning-delta":
89-
return chatChunkFromDelta({
90-
delta: {
91-
// `reasoning_content` is not yet typed in OpenAI's SDK types.
92-
reasoning_content: part.text,
93-
} as ChatCompletionChunk.Choice["delta"],
89+
return chatChunk({
90+
content: part.text,
9491
model,
9592
});
9693

0 commit comments

Comments
 (0)