transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
MIT License
16.07k stars 2.11k forks source link

problem when execute `npx tsx demos/demo.ts` #642

Closed sunfishlk closed 1 month ago

sunfishlk commented 3 months ago

Verify latest release

Verify webapp is working

Environment details

node : v18.11.0 OS : win11 browser : edge

Describe the Bug

⠋ Write a python version of bubble sort. Do not include example usage.(node:6704) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time (Use node --trace-warnings ... to show where the warning was created) ✖ Write a python version of bubble sort. Do not include example usage. TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11118:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at Promise.then.promptTokens (d:\%E5%AD%A6%E4%B9%A0\%E8%AF%BE%E5%A4%96\ChatGPT API\chatgpt-api\src\chatgpt-api.ts:251:25) { cause: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (node:internal/deps/undici/undici:6625:28) at node:internal/deps/undici/undici:6583:50 at Immediate._onImmediate (node:internal/deps/undici/undici:6612:37) at process.processImmediate (node:internal/timers:471:21) { code: 'UND_ERR_CONNECT_TIMEOUT' } 屏幕截图 2024-04-26 170920

}

transitive-bullshit commented 1 month ago

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package.