Skip to content

Commit

Permalink
🐛 (openai) Fix custom base url model fetching
Browse files Browse the repository at this point in the history
Closes #1760
  • Loading branch information
baptisteArno committed Sep 4, 2024
1 parent 18c6381 commit 5fa946c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const createChatCompletion = createAction({
fetch: ({ credentials, options }) =>
fetchGPTModels({
apiKey: credentials?.apiKey,
baseUrl: options.baseUrl,
baseUrl: credentials?.baseUrl ?? options.baseUrl,
apiVersion: options.apiVersion,
}),
},
Expand Down

0 comments on commit 5fa946c

Please sign in to comment.