@@ -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";
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user