|
1 | 1 | /* |
2 | | - * Copyright 2023-2024 the original author or authors. |
| 2 | + * Copyright 2023-2025 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
48 | 48 |
|
49 | 49 | /** |
50 | 50 | * Single-class, Java Client library for Mistral AI platform. Provides implementation for |
51 | | - * the <a href="https://docs.mistral.ai/api/#operation/createEmbedding">MistralAI |
52 | | - * Embedding API</a> and the |
53 | | - * <a href="https://docs.mistral.ai/api/#operation/createChatCompletion">Chat |
| 51 | + * the <a href= |
| 52 | + * "https://docs.mistral.ai/api/#tag/embeddings/operation/embeddings_v1_embeddings_post">Embeddings</a> |
| 53 | + * and the <a href= |
| 54 | + * "https://docs.mistral.ai/api/#tag/chat/operation/chat_completion_v1_chat_completions_post">Chat |
54 | 55 | * Completion</a> APIs. |
55 | 56 | * <p> |
56 | 57 | * Implements <b>Synchronous</b> and <b>Streaming</b> chat completion and supports latest |
@@ -269,12 +270,10 @@ public enum ChatCompletionFinishReason { |
269 | 270 |
|
270 | 271 | /** |
271 | 272 | * List of well-known Mistral chat models. |
272 | | - * https://docs.mistral.ai/platform/endpoints/#mistral-ai-generative-models |
273 | 273 | * |
274 | | - * <p> |
275 | | - * Mistral AI provides two types of models: open-weights models (Mistral 7B, Mixtral |
276 | | - * 8x7B, Mixtral 8x22B) and optimized commercial models (Mistral Small, Mistral |
277 | | - * Medium, Mistral Large, and Mistral Embeddings). |
| 274 | + * @see <a href= |
| 275 | + * "https://docs.mistral.ai/getting-started/models/models_overview/">Mistral AI Models |
| 276 | + * Overview</a> |
278 | 277 | */ |
279 | 278 | public enum ChatModel implements ChatModelDescription { |
280 | 279 |
|
@@ -315,7 +314,10 @@ public String getName() { |
315 | 314 |
|
316 | 315 | /** |
317 | 316 | * List of well-known Mistral embedding models. |
318 | | - * https://docs.mistral.ai/platform/endpoints/#mistral-ai-embedding-model |
| 317 | + * |
| 318 | + * @see <a href= |
| 319 | + * "https://docs.mistral.ai/getting-started/models/models_overview/">Mistral AI Models |
| 320 | + * Overview</a> |
319 | 321 | */ |
320 | 322 | public enum EmbeddingModel { |
321 | 323 |
|
@@ -828,9 +830,10 @@ public String content() { |
828 | 830 |
|
829 | 831 | /** |
830 | 832 | * The role of the author of this message. |
831 | | - * |
| 833 | + * <p> |
832 | 834 | * NOTE: Mistral expects the system message to be before the user message or will |
833 | 835 | * fail with 400 error. |
| 836 | + * </p> |
834 | 837 | */ |
835 | 838 | public enum Role { |
836 | 839 |
|
|
0 commit comments