feat(config): update default LLM URL to root endpoint

Changed the fallback LLM service URL from `http://localhost:8081/v1` to `http://localhost:8081/`. This aligns the default endpoint with the updated API that no longer requires the `/v1` path, ensuring the application connects correctly when no custom configuration is provided.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-11-07 16:45:19 -03:00
parent 9e1370c04f
commit 67eb58cc43

View file

@ -191,8 +191,8 @@ async fn main() -> std::io::Result<()> {
let mut bot_conn = diesel::Connection::establish(&cfg.database_url()).unwrap();
let (default_bot_id, _default_bot_name) = crate::bot::get_default_bot(&mut bot_conn);
let llm_url = config_manager
.get_config(&default_bot_id, "llm-url", Some("http://localhost:8081/v1"))
.unwrap_or_else(|_| "http://localhost:8081/v1".to_string());
.get_config(&default_bot_id, "llm-url", Some("http://localhost:8081/"))
.unwrap_or_else(|_| "http://localhost:8081/".to_string());
let llm_provider = Arc::new(crate::llm::OpenAIClient::new(
"empty".to_string(),