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

@ -38,6 +38,8 @@ export const convertTextToSpeech = createAction({
{
id: 'fetchVoices',
fetch: async ({ credentials }) => {
if (!credentials?.apiKey) return []
const response = await got
.get(baseUrl + '/v1/voices', {
headers: {
@ -56,6 +58,8 @@ export const convertTextToSpeech = createAction({
{
id: 'fetchModels',
fetch: async ({ credentials }) => {
if (!credentials?.apiKey) return []
const response = await got
.get(baseUrl + '/v1/models', {
headers: {