From 67eb58cc432f3cb13893040a2f6a9ce65e2abc37 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 7 Nov 2025 16:45:19 -0300 Subject: [PATCH] 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. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 07b49a57..d08f52d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(),