Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenbo Li <[email protected]>
  • Loading branch information
Endle committed Aug 18, 2024
1 parent 3c08640 commit 05e523b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fire_seq_search_server/src/local_llm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::collections::HashMap;


const LLM_SERVER_PORT: &str = "8081"; // TODO Remove this magic number
pub struct Llm_Engine {
pub struct LlmEngine {
endpoint: String,
client: reqwest::Client,
}
Expand All @@ -26,7 +26,7 @@ pub struct Message {
}

use tokio::task;
impl Llm_Engine {
impl LlmEngine {
pub async fn llm_init() -> Self {
info!("llm called");

Expand Down
4 changes: 2 additions & 2 deletions fire_seq_search_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::net::SocketAddr;
use warp::Filter;
use log::info;
use fire_seq_search_server::query_engine::{QueryEngine, ServerInformation};
use fire_seq_search_server::local_llm::Llm_Engine;
use fire_seq_search_server::local_llm::LlmEngine;


use clap::Parser;
Expand Down Expand Up @@ -55,7 +55,7 @@ async fn main() {
.format_target(false)
.init();

let llm = task::spawn( async { Llm_Engine::llm_init().await });
let llm = task::spawn( async { LlmEngine::llm_init().await });
//let llm = llm.await.unwrap();
//llm.summarize("hi my friend").await;

Expand Down

0 comments on commit 05e523b

Please sign in to comment.