fix: error
このコミットが含まれているのは:
コミット
dbfa128cd0
|
@ -2,9 +2,8 @@ import es from 'event-stream';
|
||||||
import {PassThrough, Stream} from 'stream';
|
import {PassThrough, Stream} from 'stream';
|
||||||
import * as crypto from 'crypto';
|
import * as crypto from 'crypto';
|
||||||
import {v4} from "uuid";
|
import {v4} from "uuid";
|
||||||
|
import {encoding_for_model} from '@dqbd/tiktoken'
|
||||||
const {encoding_for_model} = require('@dqbd/tiktoken');
|
const en = encoding_for_model("gpt-3.5-turbo");
|
||||||
const en = encoding_for_model('gpt-3.5-turbo');
|
|
||||||
|
|
||||||
type eventFunc = (eventName: string, data: string) => void;
|
type eventFunc = (eventName: string, data: string) => void;
|
||||||
|
|
||||||
|
|
読み込み中…
新しいイシューから参照