chore: todo; clean up

This commit is contained in:
Simon
2025-10-20 15:50:41 +08:00
parent 1e3e089656
commit 48da610732
3 changed files with 2 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ The development progress and future plans for PageAgent.
- [x] **Landing and doc pages** - [x] **Landing and doc pages**
- [x] **Remove ai-sdk** - Only one function is being used - [x] **Remove ai-sdk** - Only one function is being used
- [ ] **Robust LLM output** - [ ] **Robust LLM output**
- [ ] **Working homepage with live LLM API**
- [ ] **Hooks for Task and HITL** - [ ] **Hooks for Task and HITL**
- [ ] **Hijacking `page_open` event** - [ ] **Hijacking `page_open` event**
- [ ] **Custom knowledge base and instructions** - [ ] **Custom knowledge base and instructions**
@@ -20,7 +21,6 @@ The development progress and future plans for PageAgent.
- [ ] **Custom actions** - [ ] **Custom actions**
- [ ] **Optimize for popular UI frameworks** - [ ] **Optimize for popular UI frameworks**
- [ ] **Free evaluation plan?** - [ ] **Free evaluation plan?**
- [ ] **Working homepage with live LLM API**
- [ ] **free CDN** - [ ] **free CDN**
- [ ] **Testing suits** - [ ] **Testing suits**
- [ ] **Support custom llm fetch** - [ ] **Support custom llm fetch**

View File

@@ -27,6 +27,7 @@ export class OpenAIClient implements LLMClient {
const openaiTools = Object.entries(tools).map(([name, tool]) => zodToOpenAITool(name, tool)) const openaiTools = Object.entries(tools).map(([name, tool]) => zodToOpenAITool(name, tool))
// 2. Detect if Claude (auto-compatibility) // 2. Detect if Claude (auto-compatibility)
// TODO: Gemini also uses slightly different format than OpenAI
const isClaude = this.config.model.toLowerCase().startsWith('claude') const isClaude = this.config.model.toLowerCase().startsWith('claude')
// 3. Call API // 3. Call API

View File

@@ -31,8 +31,6 @@
* - 永远使用 tool call 来返回结构化数据,禁止模型直接返回(视为出错) * - 永远使用 tool call 来返回结构化数据,禁止模型直接返回(视为出错)
* - 不能假设 tool 参数合法,必须有修复机制,而且修复也应该使用 tool call 返回 * - 不能假设 tool 参数合法,必须有修复机制,而且修复也应该使用 tool call 返回
*/ */
import chalk from 'chalk'
import type { LLMConfig } from '@/config' import type { LLMConfig } from '@/config'
import { parseLLMConfig } from '@/config' import { parseLLMConfig } from '@/config'
import { EventBus, getEventBus } from '@/utils/bus' import { EventBus, getEventBus } from '@/utils/bus'
@@ -79,8 +77,6 @@ export class LLM {
async () => { async () => {
const result = await this.client.invoke(messages, tools, abortSignal) const result = await this.client.invoke(messages, tools, abortSignal)
console.log(chalk.blue.bold('LLM:invoke finished'), result)
return result return result
}, },
// retry settings // retry settings