mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 14:33:41 +08:00
加强不可用模型过滤
This commit is contained in:
@@ -27,7 +27,6 @@ function getModels(remoteModelRes: OpenAIListModelResponse) {
|
||||
m.id === "gpt-3.5-turbo-16k" ||
|
||||
m.id === "gpt-4-32k",
|
||||
);
|
||||
|
||||
return remoteModelRes;
|
||||
}
|
||||
|
||||
@@ -105,7 +104,12 @@ async function handle(
|
||||
// }
|
||||
|
||||
try {
|
||||
const response = await requestOpenai(req, cloneBody, isAzure);
|
||||
const response = await requestOpenai(
|
||||
req,
|
||||
cloneBody,
|
||||
isAzure,
|
||||
jsonBody?.model ?? "",
|
||||
);
|
||||
|
||||
// list models
|
||||
if (subpath === OpenaiPath.ListModelPath && response.status === 200) {
|
||||
|
||||
Reference in New Issue
Block a user