2
0

🐛 (openai) Fix custom base url model fetching

Closes #1760
This commit is contained in:
Baptiste Arnaud
2024-09-04 11:49:59 +02:00
parent 18c6381a77
commit 5fa946c0eb

View File

@ -48,7 +48,7 @@ export const createChatCompletion = createAction({
fetch: ({ credentials, options }) => fetch: ({ credentials, options }) =>
fetchGPTModels({ fetchGPTModels({
apiKey: credentials?.apiKey, apiKey: credentials?.apiKey,
baseUrl: options.baseUrl, baseUrl: credentials?.baseUrl ?? options.baseUrl,
apiVersion: options.apiVersion, apiVersion: options.apiVersion,
}), }),
}, },