feat: gpt35-16k

This commit is contained in:
archer
2023-06-14 09:45:49 +08:00
parent 0a0febd2e6
commit dab70378bb
10 changed files with 30 additions and 26 deletions

View File

@@ -96,7 +96,7 @@ export async function generateQA(): Promise<any> {
obj: ChatRoleEnum.System,
value: `你是出题人
${data.prompt || '下面是"一段长文本"'}
从中选出5至20个题目和答案.答案详细.按格式返回: Q1:
从中选出15至30个题目和答案.答案详细.按格式返回: Q1:
A1:
Q2:
A2:

View File

@@ -177,7 +177,7 @@ export const getApiKey = async ({
};
// 有自己的key
if (!mustPay && keyMap[model].userOpenAiKey) {
if (!mustPay && keyMap[model]?.userOpenAiKey) {
return {
user,
userOpenAiKey: keyMap[model].userOpenAiKey,