Skip to content

Commit 4874374

Browse files
committed
Mistral chat model enum cleanup
- Remove deprecated models - Add suggestions from @apappascs
1 parent 99e90e2 commit 4874374

File tree

1 file changed

+11
-6
lines changed
  • models/spring-ai-mistral-ai/src/main/java/org/springframework/ai/mistralai/api

1 file changed

+11
-6
lines changed

models/spring-ai-mistral-ai/src/main/java/org/springframework/ai/mistralai/api/MistralAiApi.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,24 @@ public enum ChatCompletionFinishReason {
265265
public enum ChatModel implements ChatModelDescription {
266266

267267
// @formatter:off
268+
@Deprecated(forRemoval = true, since = "1.0.0-M6")
268269
OPEN_MISTRAL_7B("open-mistral-7b"),
270+
@Deprecated(forRemoval = true, since = "1.0.0-M6")
269271
OPEN_MIXTRAL_7B("open-mixtral-8x7b"),
272+
@Deprecated(forRemoval = true, since = "1.0.0-M6")
270273
OPEN_MIXTRAL_22B("open-mixtral-8x22b"),
271-
SMALL("mistral-small-latest"),
272-
@Deprecated(since = "1.0.0-M1", forRemoval = true) // Mistral will be removing this model - see https://docs.mistral.ai/getting-started/models/models_overview/
273-
MEDIUM("mistral-medium-latest"),
274+
// Premier Models
275+
CODESTRAL("codestral-latest"),
274276
LARGE("mistral-large-latest"),
275-
PIXTRAL("pixtral-12b-2409"),
276277
PIXTRAL_LARGE("pixtral-large-latest"),
277278
MINISTRAL_3B_LATEST("ministral-3b-latest"),
278279
MINISTRAL_8B_LATEST("ministral-8b-latest"),
279-
OPEN_MISTRAL_NEMO("open-mixtral-nemo"),
280-
CODESTRAL("codestral-latest");
280+
// Free Models
281+
SMALL("mistral-small-latest"),
282+
PIXTRAL("pixtral-12b-2409"),
283+
// Free Models - Research
284+
OPEN_MISTRAL_NEMO("open-mistral-nemo"),
285+
OPEN_CODESTRAL_MAMBA("open-codestral-mamba");
281286
// @formatter:on
282287

283288
private final String value;

0 commit comments

Comments
 (0)