docs: update doc comments with current Mistral API links
- Update crate-level docs with full API coverage description - Fix stale docs.mistral.ai URLs to current endpoint references - Point ChatMessageRole to chat completions API docs - Point ModelListData to models API docs
This commit is contained in:
@@ -60,7 +60,7 @@ impl ChatMessage {
|
||||
}
|
||||
}
|
||||
|
||||
/// See the [Mistral AI API documentation](https://docs.mistral.ai/capabilities/completion/#chat-messages) for more information.
|
||||
/// See the [chat completions API](https://docs.mistral.ai/api/#tag/chat/operation/chat_completion_v1_chat_completions_post).
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]
|
||||
pub enum ChatMessageRole {
|
||||
#[serde(rename = "system")]
|
||||
|
||||
@@ -9,7 +9,7 @@ pub struct ModelListResponse {
|
||||
pub data: Vec<ModelListData>,
|
||||
}
|
||||
|
||||
/// See: https://docs.mistral.ai/api/#tag/models
|
||||
/// See the [models API](https://docs.mistral.ai/api/#tag/models/operation/list_models_v1_models_get).
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct ModelListData {
|
||||
pub id: String,
|
||||
|
||||
Reference in New Issue
Block a user