mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:34:45 +00:00
11 lines
371 B
TypeScript
11 lines
371 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { parseOpenAiBatchOutput } from "./embedding-batch.js";
|
|
|
|
describe("OpenAI embedding batch output", () => {
|
|
it("wraps malformed JSONL output", () => {
|
|
expect(() => parseOpenAiBatchOutput('{"custom_id":"ok"}\n{not json')).toThrow(
|
|
"OpenAI embedding batch output contained malformed JSONL",
|
|
);
|
|
});
|
|
});
|