Add debug logging for LLM provider detection
All checks were successful
BotServer CI/CD / build (push) Successful in 9m0s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-16 15:13:15 -03:00
parent c603618865
commit 05f2a5b2ab

View file

@ -735,7 +735,9 @@ pub fn create_llm_provider_from_url(
endpoint_path: Option<String>,
explicit_provider: Option<LLMProviderType>,
) -> std::sync::Arc<dyn LLMProvider> {
let provider_type = explicit_provider.as_ref().map(|p| *p).unwrap_or_else(|| LLMProviderType::from(url));
let detected = LLMProviderType::from(url);
let provider_type = explicit_provider.as_ref().map(|p| *p).unwrap_or(detected);
info!("LLM provider: explicit={:?}, detected={:?}, URL={}", explicit_provider, detected, url);
if explicit_provider.is_some() {
info!("Using explicit LLM provider type: {:?} for URL: {}", provider_type, url);
}