feat: gpt35-16k
This commit is contained in:
@@ -2,6 +2,7 @@ import mammoth from 'mammoth';
|
||||
import Papa from 'papaparse';
|
||||
import { getOpenAiEncMap } from './plugin/openai';
|
||||
import { getErrText } from './tools';
|
||||
import { OpenAiChatEnum } from '@/constants/model';
|
||||
|
||||
/**
|
||||
* 读取 txt 文件内容
|
||||
@@ -156,7 +157,7 @@ export const splitText_token = ({
|
||||
slideLen: number;
|
||||
}) => {
|
||||
try {
|
||||
const enc = getOpenAiEncMap()['gpt-3.5-turbo'];
|
||||
const enc = getOpenAiEncMap()[OpenAiChatEnum.GPT35];
|
||||
// filter empty text. encode sentence
|
||||
const encodeText = enc.encode(text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user