fix: auto-append /v1 to grok2 base URL for OpenAI-compatible endpoints
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:
@@ -67,7 +67,7 @@ function normalizeProviderBaseUrl(providerId: string, rawBaseUrl?: string): stri
|
||||
|
||||
const baseUrl = readTrimmedString(rawBaseUrl)
|
||||
if (!baseUrl) return undefined
|
||||
if (providerKey !== 'openai-compatible') return baseUrl
|
||||
if (providerKey !== 'openai-compatible' && providerKey !== 'grok2') return baseUrl
|
||||
|
||||
try {
|
||||
const parsed = new URL(baseUrl)
|
||||
|
||||
Reference in New Issue
Block a user