mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-28 08:30:19 +09:00
Merge branch 'Yidadaa:main' into main
This commit is contained in:
commit
0569b6023a
@ -254,13 +254,15 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const resJson = (await res.json()) as OpenAIListModelResponse;
|
const resJson = (await res.json()) as OpenAIListModelResponse;
|
||||||
const chatModels = resJson.data.filter((m) => m.id.startsWith("gpt-"));
|
const chatModels = resJson.data?.filter((m) => m.id.startsWith("gpt-"));
|
||||||
console.log("[Models]", chatModels);
|
console.log("[Models]", chatModels);
|
||||||
|
|
||||||
return chatModels.map((m) => ({
|
return (
|
||||||
name: m.id,
|
chatModels?.map((m) => ({
|
||||||
available: true,
|
name: m.id,
|
||||||
}));
|
available: true,
|
||||||
|
})) || []
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export { OpenaiPath };
|
export { OpenaiPath };
|
||||||
|
@ -282,6 +282,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
z-index: 999;
|
||||||
|
|
||||||
&-content {
|
&-content {
|
||||||
.list {
|
.list {
|
||||||
|
Loading…
Reference in New Issue
Block a user