Skip to content

Commit

Permalink
🐛 fix(openai): 上次 commit 后 openai.ts 文件中出现类型不匹配的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Aug 5, 2024
1 parent 150fc84 commit 3486954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,17 @@ export class ChatGPTApi implements LLMApi {
return [];
}

//由于目前 OpenAI 的 disableListModels 默认为 true,所以当前实际不会运行到这场
let seq = 1000; //同 Constant.ts 中的排序保持一致
return chatModels.map((m) => ({
name: m.id,
available: true,
sorted: seq++,
provider: {
id: "openai",
providerName: "OpenAI",
providerType: "openai",
sorted: 1,
},
}));
}
Expand Down

0 comments on commit 3486954

Please sign in to comment.