mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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:
@@ -101,7 +101,7 @@ export async function seedChatGptProvider(providerName: string): Promise<void> {
|
||||
name: providerName,
|
||||
providerType: "chatgpt",
|
||||
options: {
|
||||
models: [{ id: "gpt-5.3-codex", reasoning: true }],
|
||||
models: [{ id: "gpt-5.4-mini", reasoning: true }],
|
||||
},
|
||||
});
|
||||
await client.storePaseoAgentOAuthCredential({
|
||||
|
||||
@@ -219,7 +219,7 @@ describe("Paseo Agent config RPC schemas", () => {
|
||||
name: "chatgpt",
|
||||
providerType: "openai-codex",
|
||||
options: {
|
||||
models: [{ id: "gpt-5.3-codex", reasoning: true }],
|
||||
models: [{ id: "gpt-5.4-mini", reasoning: true }],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user