18 lines
656 B
TypeScript
18 lines
656 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { parse as parseToml } from "smol-toml";
|
|
import { getCodexCustomTemplate } from "@/config/codexTemplates";
|
|
|
|
describe("Codex custom templates", () => {
|
|
it("does not force Codex Goal mode in the custom provider template", () => {
|
|
const template = getCodexCustomTemplate();
|
|
const parsed = parseToml(template.config) as {
|
|
features?: { goals?: boolean };
|
|
model_providers?: Record<string, unknown>;
|
|
};
|
|
|
|
expect(template.auth).toEqual({ OPENAI_API_KEY: "" });
|
|
expect(parsed.features?.goals).toBeUndefined();
|
|
expect(parsed.model_providers?.custom).toBeDefined();
|
|
});
|
|
});
|