779ca4872b
- Removed Prettier configuration files (.prettierignore and .prettierrc) and migrated formatting to Biome. - Updated Biome configuration from version 2.3.11 to 2.3.12 and changed arrowParentheses rule from 'always' to 'asNeeded'. - Pinned @biomejs/biome dependency to exact version 2.3.12 in package.json and bun.lock. - Applied consistent arrow function formatting across 489 files by removing unnecessary parentheses around single parameters. - Removed blank lines after comment blocks and reorganized imports for consistency across the codebase.
21 lines
710 B
TypeScript
21 lines
710 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { MODELS } from "@oh-my-pi/pi-ai/models.generated";
|
|
import { complete } from "@oh-my-pi/pi-ai/stream";
|
|
import type { Model } from "@oh-my-pi/pi-ai/types";
|
|
import { e2eApiKey } from "./oauth";
|
|
|
|
describe.skipIf(!e2eApiKey("OPENCODE_API_KEY"))("OpenCode Zen Models Smoke Test", () => {
|
|
const zenModels = Object.values(MODELS.opencode);
|
|
|
|
zenModels.forEach(model => {
|
|
it(`${model.id}`, async () => {
|
|
const response = await complete(model as Model<any>, {
|
|
messages: [{ role: "user", content: "Say hello.", timestamp: Date.now() }],
|
|
});
|
|
|
|
expect(response.content).toBeTruthy();
|
|
expect(response.stopReason).toBe("stop");
|
|
}, 60000);
|
|
});
|
|
});
|