Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
ee8e5b5
1
Parent(s):
6188060
use normal import
Browse files- src/pages/api/llm.js +2 -4
src/pages/api/llm.js
CHANGED
@@ -2,14 +2,12 @@ import { GoogleCustomSearch } from "openai-function-calling-tools";
|
|
2 |
import { LLMError, LLMStream } from './stream';
|
3 |
|
4 |
// @ts-expect-error
|
5 |
-
import wasm from '
|
6 |
|
7 |
import tiktokenModel from '@dqbd/tiktoken/encoders/cl100k_base.json';
|
8 |
import { Tiktoken, init } from '@dqbd/tiktoken/lite/init';
|
9 |
|
10 |
-
export const config = {
|
11 |
-
|
12 |
-
};
|
13 |
|
14 |
const handler = async (req) => {
|
15 |
try {
|
|
|
2 |
import { LLMError, LLMStream } from './stream';
|
3 |
|
4 |
// @ts-expect-error
|
5 |
+
import wasm from '@dqbd/tiktoken/lite/tiktoken_bg.wasm?module';
|
6 |
|
7 |
import tiktokenModel from '@dqbd/tiktoken/encoders/cl100k_base.json';
|
8 |
import { Tiktoken, init } from '@dqbd/tiktoken/lite/init';
|
9 |
|
10 |
+
export const config = {};
|
|
|
|
|
11 |
|
12 |
const handler = async (req) => {
|
13 |
try {
|