mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
defaultProviderSettings : mistral option
This commit is contained in:
parent
e4b0061f66
commit
4e9dc5ce4a
1 changed files with 19 additions and 3 deletions
|
|
@ -43,6 +43,9 @@ export const defaultProviderSettings = {
|
||||||
xAI: {
|
xAI: {
|
||||||
apiKey: ''
|
apiKey: ''
|
||||||
},
|
},
|
||||||
|
mistral: {
|
||||||
|
apiKey: ''
|
||||||
|
},
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -144,6 +147,11 @@ export const displayInfoOfProviderName = (providerName: ProviderName): DisplayIn
|
||||||
title: 'Grok (xAI)',
|
title: 'Grok (xAI)',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (providerName === 'mistral') {
|
||||||
|
return {
|
||||||
|
title: 'Mistal.ai API',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
throw new Error(`descOfProviderName: Unknown provider name: "${providerName}"`)
|
throw new Error(`descOfProviderName: Unknown provider name: "${providerName}"`)
|
||||||
|
|
@ -170,7 +178,8 @@ export const displayInfoOfSettingName = (providerName: ProviderName, settingName
|
||||||
providerName === 'groq' ? 'gsk_key...' :
|
providerName === 'groq' ? 'gsk_key...' :
|
||||||
providerName === 'openAICompatible' ? 'sk-key...' :
|
providerName === 'openAICompatible' ? 'sk-key...' :
|
||||||
providerName === 'xAI' ? 'xai-key...' :
|
providerName === 'xAI' ? 'xai-key...' :
|
||||||
'',
|
providerName === 'mistral' ? 'key...' :
|
||||||
|
'',
|
||||||
|
|
||||||
subTextMd: providerName === 'anthropic' ? 'Get your [API Key here](https://console.anthropic.com/settings/keys).' :
|
subTextMd: providerName === 'anthropic' ? 'Get your [API Key here](https://console.anthropic.com/settings/keys).' :
|
||||||
providerName === 'openAI' ? 'Get your [API Key here](https://platform.openai.com/api-keys).' :
|
providerName === 'openAI' ? 'Get your [API Key here](https://platform.openai.com/api-keys).' :
|
||||||
|
|
@ -179,8 +188,9 @@ export const displayInfoOfSettingName = (providerName: ProviderName, settingName
|
||||||
providerName === 'gemini' ? 'Get your [API Key here](https://aistudio.google.com/apikey).' :
|
providerName === 'gemini' ? 'Get your [API Key here](https://aistudio.google.com/apikey).' :
|
||||||
providerName === 'groq' ? 'Get your [API Key here](https://console.groq.com/keys).' :
|
providerName === 'groq' ? 'Get your [API Key here](https://console.groq.com/keys).' :
|
||||||
providerName === 'xAI' ? 'Get your [API Key here](https://console.x.ai).' :
|
providerName === 'xAI' ? 'Get your [API Key here](https://console.x.ai).' :
|
||||||
providerName === 'openAICompatible' ? undefined :
|
providerName === 'mistral' ? 'Get your [API Key here](https://console.mistral.ai/api-keys).' :
|
||||||
'',
|
providerName === 'openAICompatible' ? undefined :
|
||||||
|
'',
|
||||||
isPasswordField: true,
|
isPasswordField: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -288,6 +298,12 @@ export const defaultSettingsOfProvider: SettingsOfProvider = {
|
||||||
...modelInfoOfDefaultModelNames(defaultModelsOfProvider.openAICompatible),
|
...modelInfoOfDefaultModelNames(defaultModelsOfProvider.openAICompatible),
|
||||||
_didFillInProviderSettings: undefined,
|
_didFillInProviderSettings: undefined,
|
||||||
},
|
},
|
||||||
|
mistral: { // aggregator
|
||||||
|
...defaultCustomSettings,
|
||||||
|
...defaultProviderSettings.mistral,
|
||||||
|
...modelInfoOfDefaultModelNames(defaultModelsOfProvider.mistral),
|
||||||
|
_didFillInProviderSettings: undefined,
|
||||||
|
},
|
||||||
ollama: { // aggregator
|
ollama: { // aggregator
|
||||||
...defaultCustomSettings,
|
...defaultCustomSettings,
|
||||||
...defaultProviderSettings.ollama,
|
...defaultProviderSettings.ollama,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue