Module not found: Package path ./lite/tiktoken_bg.wasm?module is not exported from package
Jaykef opened this issue · 1 comments
Jaykef commented
Getting this error after sending a message, it's coming from here:
error - ./pages/api/chat.ts:7:0
// @ts-expect-error
import wasm from '@dqbd/tiktoken/lite/tiktoken_bg.wasm?module';
import tiktokenModel from '@dqbd/tiktoken/encoders/cl100k_base.json';
import { Tiktoken, init } from '@dqbd/tiktoken/lite/init';
I've tried using official tiktoken but gpt-llama-cpp crashes
// @ts-expect-error
import wasm from 'tiktoken/lite/tiktoken_bg.wasm?module';
import tiktokenModel from 'tiktoken/encoders/cl100k_base.json';
import { Tiktoken, init } from 'tiktoken/lite/init';
Crash
===== CHAT COMPLETION REQUEST =====
AUTO MODEL DETECTION FAILED. LOADING DEFAULT CHATENGINE...
{ '--n_predict': 1000, '--temp': 1 }
node:internal/errors:484
ErrorCaptureStackTrace(err);
^
Error: spawn ENOTDIR
Jaykef commented
fixed: had to to switch node version