Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangsx committed Jun 13, 2023
1 parent ccd3f05 commit dbfa128
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import es from 'event-stream';
import {PassThrough, Stream} from 'stream';
import * as crypto from 'crypto';
import {v4} from "uuid";

const {encoding_for_model} = require('@dqbd/tiktoken');
const en = encoding_for_model('gpt-3.5-turbo');
import {encoding_for_model} from '@dqbd/tiktoken'
const en = encoding_for_model("gpt-3.5-turbo");

type eventFunc = (eventName: string, data: string) => void;

Expand Down

0 comments on commit dbfa128

Please sign in to comment.