Add debug logging for LLM provider detection
All checks were successful
BotServer CI/CD / build (push) Successful in 9m0s
All checks were successful
BotServer CI/CD / build (push) Successful in 9m0s
This commit is contained in:
parent
c603618865
commit
05f2a5b2ab
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue