Skip to content

Commit ae8c146

Browse files
authored
Merge pull request #5708 from meilisearch/unsupport-gemini
Remove Gemini from the LLM-providers list
2 parents bd2bd0f + 89498a2 commit ae8c146

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

crates/meilisearch-types/src/features.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ pub enum ChatCompletionSource {
114114
OpenAi,
115115
AzureOpenAi,
116116
Mistral,
117-
Gemini,
118117
VLlm,
119118
}
120119

@@ -134,7 +133,6 @@ impl ChatCompletionSource {
134133
AzureOpenAi if Self::old_openai_model(model) => System,
135134
AzureOpenAi => Developer,
136135
Mistral => System,
137-
Gemini => System,
138136
VLlm => System,
139137
}
140138
}
@@ -154,7 +152,6 @@ impl ChatCompletionSource {
154152
match self {
155153
OpenAi => Some("https://api.openai.com/v1/"),
156154
Mistral => Some("https://api.mistral.ai/v1/"),
157-
Gemini => Some("https://generativelanguage.googleapis.com/v1beta/openai"),
158155
AzureOpenAi | VLlm => None,
159156
}
160157
}

crates/meilisearch/src/routes/chats/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Config {
1313
pub fn new(chat_settings: &DbChatSettings) -> Self {
1414
use meilisearch_types::features::ChatCompletionSource::*;
1515
match chat_settings.source {
16-
OpenAi | Mistral | Gemini | VLlm => {
16+
OpenAi | Mistral | VLlm => {
1717
let mut config = OpenAIConfig::default();
1818
if let Some(org_id) = chat_settings.org_id.as_ref() {
1919
config = config.with_org_id(org_id);

crates/meilisearch/src/routes/chats/settings.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ pub enum ChatCompletionSource {
218218
#[default]
219219
OpenAi,
220220
Mistral,
221-
Gemini,
222221
AzureOpenAi,
223222
VLlm,
224223
}
@@ -229,7 +228,6 @@ impl From<ChatCompletionSource> for DbChatCompletionSource {
229228
match source {
230229
OpenAi => DbChatCompletionSource::OpenAi,
231230
Mistral => DbChatCompletionSource::Mistral,
232-
Gemini => DbChatCompletionSource::Gemini,
233231
AzureOpenAi => DbChatCompletionSource::AzureOpenAi,
234232
VLlm => DbChatCompletionSource::VLlm,
235233
}

0 commit comments

Comments
 (0)