fix custom models setting

This commit is contained in:
Q.A.zh
2024-12-29 06:45:58 +00:00
committed by GitHub
parent e1cb8e36fa
commit 24ff78e1c5
3 changed files with 18 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ export async function requestOpenai(req: NextRequest) {
[
ServiceProvider.OpenAI,
ServiceProvider.Azure,
jsonBody?.model as string, // support provider-unspecified model
"custom" as string, // support provider-unspecified model
],
)
) {