chore(ai): format openai completions test
This commit is contained in:
@@ -7,9 +7,7 @@ import type { Tool } from "../src/types.js";
|
|||||||
const mockState = vi.hoisted(() => ({
|
const mockState = vi.hoisted(() => ({
|
||||||
lastParams: undefined as unknown,
|
lastParams: undefined as unknown,
|
||||||
chunks: undefined as
|
chunks: undefined as
|
||||||
| Array<
|
| Array<null | {
|
||||||
| null
|
|
||||||
| {
|
|
||||||
id?: string;
|
id?: string;
|
||||||
choices?: Array<{ delta: Record<string, unknown>; finish_reason: string | null; usage?: unknown }>;
|
choices?: Array<{ delta: Record<string, unknown>; finish_reason: string | null; usage?: unknown }>;
|
||||||
usage?: {
|
usage?: {
|
||||||
@@ -18,8 +16,7 @@ const mockState = vi.hoisted(() => ({
|
|||||||
prompt_tokens_details: { cached_tokens: number };
|
prompt_tokens_details: { cached_tokens: number };
|
||||||
completion_tokens_details: { reasoning_tokens: number };
|
completion_tokens_details: { reasoning_tokens: number };
|
||||||
};
|
};
|
||||||
}
|
}>
|
||||||
>
|
|
||||||
| undefined,
|
| undefined,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user