Make date parse from metadata a little more consistent

This commit is contained in:
Cameron
2026-01-14 12:54:36 -05:00
parent a37a211282
commit f65f4efde8
5 changed files with 54 additions and 30 deletions

View File

@@ -222,13 +222,14 @@ pub async fn get_available_models_handler(
let ollama_client = &app_state.ollama;
// Fetch models with capabilities from primary server
let primary_models = match OllamaClient::list_models_with_capabilities(&ollama_client.primary_url).await {
Ok(models) => models,
Err(e) => {
log::warn!("Failed to fetch models from primary server: {:?}", e);
vec![]
}
};
let primary_models =
match OllamaClient::list_models_with_capabilities(&ollama_client.primary_url).await {
Ok(models) => models,
Err(e) => {
log::warn!("Failed to fetch models from primary server: {:?}", e);
vec![]
}
};
let primary = ServerModels {
url: ollama_client.primary_url.clone(),