@@ -486,7 +486,7 @@ export class AgentLoop {
|
|||||||
let reasoning: Reasoning | undefined;
|
let reasoning: Reasoning | undefined;
|
||||||
if (this.model.startsWith("o")) {
|
if (this.model.startsWith("o")) {
|
||||||
reasoning = { effort: "high" };
|
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
|
// @ts-expect-error waiting for API type update
|
||||||
reasoning.summary = "auto";
|
reasoning.summary = "auto";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ describe("AgentLoop", () => {
|
|||||||
expect(config.instructions).toContain("Hello docs!");
|
expect(config.instructions).toContain("Hello docs!");
|
||||||
|
|
||||||
const agent = new AgentLoop({
|
const agent = new AgentLoop({
|
||||||
model: "o3-mini", // arbitrary
|
model: "o3", // arbitrary
|
||||||
instructions: config.instructions,
|
instructions: config.instructions,
|
||||||
config,
|
config,
|
||||||
approvalPolicy: { mode: "suggest" } as any,
|
approvalPolicy: { mode: "suggest" } as any,
|
||||||
|
|||||||
Reference in New Issue
Block a user