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:
parent
9e1370c04f
commit
67eb58cc43
1 changed files with 2 additions and 2 deletions
|
|
@ -191,8 +191,8 @@ async fn main() -> std::io::Result<()> {
|
||||||
let mut bot_conn = diesel::Connection::establish(&cfg.database_url()).unwrap();
|
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 (default_bot_id, _default_bot_name) = crate::bot::get_default_bot(&mut bot_conn);
|
||||||
let llm_url = config_manager
|
let llm_url = config_manager
|
||||||
.get_config(&default_bot_id, "llm-url", Some("http://localhost:8081/v1"))
|
.get_config(&default_bot_id, "llm-url", Some("http://localhost:8081/"))
|
||||||
.unwrap_or_else(|_| "http://localhost:8081/v1".to_string());
|
.unwrap_or_else(|_| "http://localhost:8081/".to_string());
|
||||||
|
|
||||||
let llm_provider = Arc::new(crate::llm::OpenAIClient::new(
|
let llm_provider = Arc::new(crate::llm::OpenAIClient::new(
|
||||||
"empty".to_string(),
|
"empty".to_string(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue