fix: allow grok2 providers to use openai-compat gateway route
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -171,7 +171,7 @@ function parseCustomProviders(rawProviders: string | null | undefined): CustomPr
|
||||
throw new Error(`PROVIDER_GATEWAY_ROUTE_INVALID: providers[${index}].gatewayRoute`)
|
||||
} else if (providerKey === 'openai-compatible' && gatewayRouteRaw === 'official') {
|
||||
throw new Error(`PROVIDER_GATEWAY_ROUTE_INVALID: providers[${index}].gatewayRoute`)
|
||||
} else if (providerKey !== 'openai-compatible' && gatewayRouteRaw === 'openai-compat') {
|
||||
} else if (providerKey !== 'openai-compatible' && providerKey !== 'grok2' && gatewayRouteRaw === 'openai-compat') {
|
||||
throw new Error(`PROVIDER_GATEWAY_ROUTE_INVALID: providers[${index}].gatewayRoute`)
|
||||
} else {
|
||||
gatewayRoute = gatewayRouteRaw
|
||||
|
||||
Reference in New Issue
Block a user