(fix) o3 instead of o3-mini (#37)

* o3 instead of o3-mini
This commit is contained in:
Yashraj Yadav
2025-04-16 23:48:41 +05:30
committed by GitHub
parent cc46d3e359
commit e9f84eab01
2 changed files with 2 additions and 2 deletions

View File

@@ -486,7 +486,7 @@ export class AgentLoop {
let reasoning: Reasoning | undefined;
if (this.model.startsWith("o")) {
reasoning = { effort: "high" };
if (this.model === "o3-mini" || this.model === "o4-mini") {
if (this.model === "o3" || this.model === "o4-mini") {
// @ts-expect-error waiting for API type update
reasoning.summary = "auto";
}

View File

@@ -112,7 +112,7 @@ describe("AgentLoop", () => {
expect(config.instructions).toContain("Hello docs!");
const agent = new AgentLoop({
model: "o3-mini", // arbitrary
model: "o3", // arbitrary
instructions: config.instructions,
config,
approvalPolicy: { mode: "suggest" } as any,