feat: custom provider

This commit is contained in:
Aloxaf 2025-01-25 16:45:11 +08:00
parent 88475c225b
commit 41b33a1c1e
No known key found for this signature in database
GPG Key ID: 0F8D23F44B277E02
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ export async function requestOpenai(req: NextRequest) {
[ [
ServiceProvider.OpenAI, ServiceProvider.OpenAI,
ServiceProvider.Azure, ServiceProvider.Azure,
// 自定义等级
"L1",
"L2",
"L3",
"L4",
jsonBody?.model as string, // support provider-unspecified model jsonBody?.model as string, // support provider-unspecified model
], ],
) )