fix: remove tiktoken dependency to resolve WASM runtime error in serverless
**Problem:** The Interactive Playground was failing with "Missing tiktoken_bg.wasm" error in production. Tiktoken requires WASM files which don't work in Vercel's serverless environment. **Solution:** - Remove tiktoken import from tool-executor-agent - Replace tiktoken-based token counting with character estimation (~4 chars/token) - Remove tiktoken from package.json dependencies - Remove experimental webpack WASM config (no longer needed) **Impact:** - Token counting is now approximate but consistent - No more WASM-related runtime errors - Serverless deployment works properly - Tool execution now functional in production 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
fe96bc780d
commit
165cacf45a
2 changed files with 5 additions and 14 deletions
|
|
@ -31,7 +31,6 @@
|
|||
"rehype-raw": "^7.0.0",
|
||||
"rehype-sanitize": "^6.0.0",
|
||||
"remark-gfm": "^4.0.1",
|
||||
"tiktoken": "^1.0.22",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue