diff --git a/ROADMAP.md b/ROADMAP.md index 8958c7e..c8b0a08 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -12,6 +12,7 @@ The development progress and future plans for PageAgent. - [x] **Landing and doc pages** - [x] **Remove ai-sdk** - Only one function is being used - [ ] **Robust LLM output** +- [ ] **Working homepage with live LLM API** - [ ] **Hooks for Task and HITL** - [ ] **Hijacking `page_open` event** - [ ] **Custom knowledge base and instructions** @@ -20,7 +21,6 @@ The development progress and future plans for PageAgent. - [ ] **Custom actions** - [ ] **Optimize for popular UI frameworks** - [ ] **Free evaluation plan?** -- [ ] **Working homepage with live LLM API** - [ ] **free CDN** - [ ] **Testing suits** - [ ] **Support custom llm fetch** diff --git a/src/llms/OpenAIClient.ts b/src/llms/OpenAIClient.ts index 0c4a041..7bd389b 100644 --- a/src/llms/OpenAIClient.ts +++ b/src/llms/OpenAIClient.ts @@ -27,6 +27,7 @@ export class OpenAIClient implements LLMClient { const openaiTools = Object.entries(tools).map(([name, tool]) => zodToOpenAITool(name, tool)) // 2. Detect if Claude (auto-compatibility) + // TODO: Gemini also uses slightly different format than OpenAI const isClaude = this.config.model.toLowerCase().startsWith('claude') // 3. Call API diff --git a/src/llms/index.ts b/src/llms/index.ts index 6e6c9c5..e549012 100644 --- a/src/llms/index.ts +++ b/src/llms/index.ts @@ -31,8 +31,6 @@ * - 永远使用 tool call 来返回结构化数据,禁止模型直接返回(视为出错) * - 不能假设 tool 参数合法,必须有修复机制,而且修复也应该使用 tool call 返回 */ -import chalk from 'chalk' - import type { LLMConfig } from '@/config' import { parseLLMConfig } from '@/config' import { EventBus, getEventBus } from '@/utils/bus' @@ -79,8 +77,6 @@ export class LLM { async () => { const result = await this.client.invoke(messages, tools, abortSignal) - console.log(chalk.blue.bold('LLM:invoke finished'), result) - return result }, // retry settings