fix(paseo-agent): use working OAuth catalog model

Live proof showed the previous OAuth catalog default was rejected at session start. Switch the catalog, docs, fixtures, and regenerated schema to the working default while keeping provider config generic.
This commit is contained in:
Mohamed Boudra
2026-07-02 12:06:02 +02:00
parent 363e76858f
commit 2ba7562dff
8 changed files with 918 additions and 710 deletions

View File

@@ -55,7 +55,7 @@ export const PASEO_AGENT_PROVIDER_CATALOG = [
api: "openai-codex-responses",
baseUrl: "https://chatgpt.com/backend-api",
auth: { kind: "oauth", flow: "openai-codex" },
models: [{ id: "gpt-5.3-codex", reasoning: true }],
models: [{ id: "gpt-5.4-mini", reasoning: true }],
},
{
id: "kimi",

View File

@@ -258,7 +258,7 @@ describe("PaseoAgentConfigService", () => {
expect.objectContaining({
name: "chatgpt",
providerType: "chatgpt",
models: [{ id: "gpt-5.3-codex", reasoning: true }],
models: [{ id: "gpt-5.4-mini", reasoning: true }],
auth: { kind: "oauth", configured: true, source: "stored" },
available: true,
}),

View File

@@ -107,7 +107,7 @@ describe("listPaseoAgentModels", () => {
const models = listPaseoAgentModels(
PaseoAgentConfigSchema.parse({ providers: { chatgpt: { type: "chatgpt" } } }),
);
expect(models.map((m) => m.id)).toEqual(["chatgpt/gpt-5.3-codex"]);
expect(models.map((m) => m.id)).toEqual(["chatgpt/gpt-5.4-mini"]);
});
it("marks the configured default model", () => {
@@ -179,7 +179,7 @@ describe("paseoAgentModelProviders", () => {
expect(provider.config.apiKey).toBeUndefined();
expect(provider.config.api).toBe("openai-codex-responses");
expect(provider.config.baseUrl).toBe("https://chatgpt.com/backend-api");
expect(provider.config.models?.[0]?.id).toBe("gpt-5.3-codex");
expect(provider.config.models?.[0]?.id).toBe("gpt-5.4-mini");
});
it("lets instance models override catalog default models", async () => {
@@ -205,7 +205,7 @@ describe("paseoAgentModelProviders", () => {
}),
);
expect(provider.oauth).toEqual({ flow: "openai-codex" });
expect(provider.config.models?.[0]?.id).toBe("gpt-5.3-codex");
expect(provider.config.models?.[0]?.id).toBe("gpt-5.4-mini");
});
it("rejects unknown provider types at runtime with known ids", async () => {
@@ -295,7 +295,7 @@ describe("resolvePaseoAgentModel", () => {
PaseoAgentConfigSchema.parse({ providers: { chatgpt: { type: "chatgpt" } } }),
null,
),
).toEqual({ provider: "chatgpt", id: "gpt-5.3-codex" });
).toEqual({ provider: "chatgpt", id: "gpt-5.4-mini" });
});
it("ignores an implicit default whose provider is not registered", () => {