diff --git a/packages/coding-agent/src/memories/index.ts b/packages/coding-agent/src/memories/index.ts index 55dabbb26..ae27abbe1 100644 --- a/packages/coding-agent/src/memories/index.ts +++ b/packages/coding-agent/src/memories/index.ts @@ -744,7 +744,12 @@ async function runConsolidationModel(options: { { messages: [{ role: "user", content: [{ type: "text", text: input }], timestamp: Date.now() }], }, - { apiKey, metadata: options.metadata, maxTokens: 8192, reasoning: clampThinkingLevelForModel(model, Effort.Medium) }, + { + apiKey, + metadata: options.metadata, + maxTokens: 8192, + reasoning: clampThinkingLevelForModel(model, Effort.Medium), + }, ); if (response.stopReason === "error") { throw new Error(response.errorMessage || "phase2 model error"); diff --git a/packages/coding-agent/test/memories-runtime.test.ts b/packages/coding-agent/test/memories-runtime.test.ts index 70da3fa7d..b3d9e0a21 100644 --- a/packages/coding-agent/test/memories-runtime.test.ts +++ b/packages/coding-agent/test/memories-runtime.test.ts @@ -2,8 +2,8 @@ import { afterEach, beforeEach, describe, expect, test, vi } from "bun:test"; import * as fs from "node:fs/promises"; import * as os from "node:os"; import * as path from "node:path"; -import { Effort, type Model } from "@oh-my-pi/pi-ai"; import * as ai from "@oh-my-pi/pi-ai"; +import { Effort, type Model } from "@oh-my-pi/pi-ai"; import { Settings } from "@oh-my-pi/pi-coding-agent/config/settings"; import { buildMemoryToolDeveloperInstructions,