File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed
meilisearch/src/routes/chats Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ pub enum ChatCompletionSource {
114
114
OpenAi ,
115
115
AzureOpenAi ,
116
116
Mistral ,
117
- Gemini ,
118
117
VLlm ,
119
118
}
120
119
@@ -134,7 +133,6 @@ impl ChatCompletionSource {
134
133
AzureOpenAi if Self :: old_openai_model ( model) => System ,
135
134
AzureOpenAi => Developer ,
136
135
Mistral => System ,
137
- Gemini => System ,
138
136
VLlm => System ,
139
137
}
140
138
}
@@ -154,7 +152,6 @@ impl ChatCompletionSource {
154
152
match self {
155
153
OpenAi => Some ( "https://api.openai.com/v1/" ) ,
156
154
Mistral => Some ( "https://api.mistral.ai/v1/" ) ,
157
- Gemini => Some ( "https://generativelanguage.googleapis.com/v1beta/openai" ) ,
158
155
AzureOpenAi | VLlm => None ,
159
156
}
160
157
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ impl Config {
13
13
pub fn new ( chat_settings : & DbChatSettings ) -> Self {
14
14
use meilisearch_types:: features:: ChatCompletionSource :: * ;
15
15
match chat_settings. source {
16
- OpenAi | Mistral | Gemini | VLlm => {
16
+ OpenAi | Mistral | VLlm => {
17
17
let mut config = OpenAIConfig :: default ( ) ;
18
18
if let Some ( org_id) = chat_settings. org_id . as_ref ( ) {
19
19
config = config. with_org_id ( org_id) ;
Original file line number Diff line number Diff line change @@ -218,7 +218,6 @@ pub enum ChatCompletionSource {
218
218
#[ default]
219
219
OpenAi ,
220
220
Mistral ,
221
- Gemini ,
222
221
AzureOpenAi ,
223
222
VLlm ,
224
223
}
@@ -229,7 +228,6 @@ impl From<ChatCompletionSource> for DbChatCompletionSource {
229
228
match source {
230
229
OpenAi => DbChatCompletionSource :: OpenAi ,
231
230
Mistral => DbChatCompletionSource :: Mistral ,
232
- Gemini => DbChatCompletionSource :: Gemini ,
233
231
AzureOpenAi => DbChatCompletionSource :: AzureOpenAi ,
234
232
VLlm => DbChatCompletionSource :: VLlm ,
235
233
}
You can’t perform that action at this time.
0 commit comments