diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 6f4c4ec1..4b43dbd6 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -686,8 +686,7 @@ async fn set_mode_handler( #[actix_web::get("/")] async fn index() -> Result { - let html = fs::read_to_string("templates/index.html") - .unwrap_or_else(|_| include_str!("../../static/index.html").to_string()); + let html = fs::read_to_string("web/index.html").unwrap(); Ok(HttpResponse::Ok().content_type("text/html").body(html)) } diff --git a/src/main.rs b/src/main.rs index f1521517..f88dae4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,7 +105,10 @@ async fn main() -> std::io::Result<()> { }; let tool_manager = Arc::new(tools::ToolManager::new()); - let llm_provider = Arc::new(llm::MockLLMProvider::new()); + let llm_provider = Arc::new(llm::OpenAIClient::new( + "empty".to_string(), + Some("http://localhost:8081".to_string()), + )); let web_adapter = Arc::new(WebChannelAdapter::new()); let voice_adapter = Arc::new(VoiceAdapter::new( diff --git a/static/index.html b/web/index.html similarity index 50% rename from static/index.html rename to web/index.html index 242a09d6..af6bbc43 100644 --- a/static/index.html +++ b/web/index.html @@ -1,122 +1,162 @@ - + - General Bots + + General Bots 2400 + + + + + - + +
+ + +
+
+
+
+ D +
+

+ General Bots +

+
+ + +
+ -
-
- - +
🎤 Ouvindo... Fale agora
+ +
+
+
+ D +
+

+ Bem-vindo ao General Bots +

+

+ Seu assistente de IA avançado +

+
+
+ +
+
+ + +
+
-