add minimal mistral support
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
pub mod chat;
|
||||
mod llmclient;
|
||||
mod translation;
|
||||
|
||||
pub use llmclient::mistral::Mistral;
|
||||
|
||||
use rmcp::model::InitializeRequestParams;
|
||||
use rmcp::service::{ClientInitializeError, RunningService};
|
||||
use rmcp::transport::streamable_http_client::StreamableHttpClientTransportConfig;
|
||||
@@ -48,8 +51,10 @@ pub fn guaranteed_mcp_server_name(
|
||||
) -> String {
|
||||
if let Some(user_specified_name) = user_specified_name {
|
||||
user_specified_name
|
||||
} else if let Some(peer_info) = client.peer_info() {
|
||||
peer_info.server_info.name.clone()
|
||||
} else if let Some(peer_info) = client.peer_info()
|
||||
&& let Some(server_info) = &peer_info.server_info
|
||||
{
|
||||
server_info.name.clone()
|
||||
} else {
|
||||
let random_name = generate_random_mcp_server_name();
|
||||
log::warn!(
|
||||
|
||||
Reference in New Issue
Block a user