mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-27 06:48:15 +00:00
Remove Gemini from the LLM-providers list
This commit is contained in:
parent
bd2bd0f33b
commit
89498a2bea
@ -114,7 +114,6 @@ pub enum ChatCompletionSource {
|
|||||||
OpenAi,
|
OpenAi,
|
||||||
AzureOpenAi,
|
AzureOpenAi,
|
||||||
Mistral,
|
Mistral,
|
||||||
Gemini,
|
|
||||||
VLlm,
|
VLlm,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +133,6 @@ impl ChatCompletionSource {
|
|||||||
AzureOpenAi if Self::old_openai_model(model) => System,
|
AzureOpenAi if Self::old_openai_model(model) => System,
|
||||||
AzureOpenAi => Developer,
|
AzureOpenAi => Developer,
|
||||||
Mistral => System,
|
Mistral => System,
|
||||||
Gemini => System,
|
|
||||||
VLlm => System,
|
VLlm => System,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -154,7 +152,6 @@ impl ChatCompletionSource {
|
|||||||
match self {
|
match self {
|
||||||
OpenAi => Some("https://api.openai.com/v1/"),
|
OpenAi => Some("https://api.openai.com/v1/"),
|
||||||
Mistral => Some("https://api.mistral.ai/v1/"),
|
Mistral => Some("https://api.mistral.ai/v1/"),
|
||||||
Gemini => Some("https://generativelanguage.googleapis.com/v1beta/openai"),
|
|
||||||
AzureOpenAi | VLlm => None,
|
AzureOpenAi | VLlm => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ impl Config {
|
|||||||
pub fn new(chat_settings: &DbChatSettings) -> Self {
|
pub fn new(chat_settings: &DbChatSettings) -> Self {
|
||||||
use meilisearch_types::features::ChatCompletionSource::*;
|
use meilisearch_types::features::ChatCompletionSource::*;
|
||||||
match chat_settings.source {
|
match chat_settings.source {
|
||||||
OpenAi | Mistral | Gemini | VLlm => {
|
OpenAi | Mistral | VLlm => {
|
||||||
let mut config = OpenAIConfig::default();
|
let mut config = OpenAIConfig::default();
|
||||||
if let Some(org_id) = chat_settings.org_id.as_ref() {
|
if let Some(org_id) = chat_settings.org_id.as_ref() {
|
||||||
config = config.with_org_id(org_id);
|
config = config.with_org_id(org_id);
|
||||||
|
@ -218,7 +218,6 @@ pub enum ChatCompletionSource {
|
|||||||
#[default]
|
#[default]
|
||||||
OpenAi,
|
OpenAi,
|
||||||
Mistral,
|
Mistral,
|
||||||
Gemini,
|
|
||||||
AzureOpenAi,
|
AzureOpenAi,
|
||||||
VLlm,
|
VLlm,
|
||||||
}
|
}
|
||||||
@ -229,7 +228,6 @@ impl From<ChatCompletionSource> for DbChatCompletionSource {
|
|||||||
match source {
|
match source {
|
||||||
OpenAi => DbChatCompletionSource::OpenAi,
|
OpenAi => DbChatCompletionSource::OpenAi,
|
||||||
Mistral => DbChatCompletionSource::Mistral,
|
Mistral => DbChatCompletionSource::Mistral,
|
||||||
Gemini => DbChatCompletionSource::Gemini,
|
|
||||||
AzureOpenAi => DbChatCompletionSource::AzureOpenAi,
|
AzureOpenAi => DbChatCompletionSource::AzureOpenAi,
|
||||||
VLlm => DbChatCompletionSource::VLlm,
|
VLlm => DbChatCompletionSource::VLlm,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user