From 27382af199b3534d6c7b72ada1e02ef484561108 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Sat, 26 Apr 2025 08:23:12 -0400 Subject: [PATCH] unused function args --- src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index bf361ea..a121524 100644 --- a/src/main.rs +++ b/src/main.rs @@ -147,11 +147,11 @@ async fn main() -> anyhow::Result<()> { match args.stream { true => { - stream_ollama_response(&mut app, client.clone(), args.model.clone(), prompt, req) + stream_ollama_response(&mut app, client.clone(), req) .await?; } false => { - ollama_response(&mut app, client.clone(), args.model.clone(), prompt, req) + ollama_response(&mut app, client.clone(), req) .await?; } } @@ -178,8 +178,6 @@ async fn main() -> anyhow::Result<()> { async fn stream_ollama_response( app: &mut App, client: Client, - model: String, - user_prompt: String, req: ChatRequest<'_>, ) -> anyhow::Result<()> { app.waiting = true; @@ -215,8 +213,6 @@ async fn stream_ollama_response( async fn ollama_response<'a>( app: &mut App, client: Client, - model: String, - user_prompt: String, req: ChatRequest<'a>, ) -> anyhow::Result<()> {