2
0

♻️ (mistral) Use new ai sdk Mistral core

This commit is contained in:
Baptiste Arnaud
2024-05-21 16:08:35 +02:00
parent e91fced41d
commit 15b2901f8a
26 changed files with 191 additions and 645 deletions

View File

@ -46,6 +46,8 @@ export const createChatCompletion = createAction({
id: 'fetchModels',
dependencies: ['baseUrl', 'apiVersion'],
fetch: async ({ credentials, options }) => {
if (!credentials?.apiKey) return []
const baseUrl = options?.baseUrl ?? defaultOpenAIOptions.baseUrl
const config = {
apiKey: credentials.apiKey,