This commit is contained in:
wameup
2026-03-17 03:20:48 +00:00
parent b282bd3d24
commit 0e92f55616
2 changed files with 92 additions and 0 deletions

View File

@@ -8,6 +8,8 @@
// model reaches a final answer. Because the browser/context are not closed,
// Bun stays alive until you close the browser or stop the process manually.
// 这是官网文档里的 option 3: Use a code-execution harness. 它并没有用到 tools: [{type:'computer'}] 的 buildin computer tool。
import OpenAI from 'openai'
import readline from 'node:readline/promises'
import vm from 'node:vm'