unused function args
This commit is contained in:
@@ -147,11 +147,11 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
match args.stream {
|
match args.stream {
|
||||||
true => {
|
true => {
|
||||||
stream_ollama_response(&mut app, client.clone(), args.model.clone(), prompt, req)
|
stream_ollama_response(&mut app, client.clone(), req)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
false => {
|
false => {
|
||||||
ollama_response(&mut app, client.clone(), args.model.clone(), prompt, req)
|
ollama_response(&mut app, client.clone(), req)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -178,8 +178,6 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
async fn stream_ollama_response(
|
async fn stream_ollama_response(
|
||||||
app: &mut App,
|
app: &mut App,
|
||||||
client: Client,
|
client: Client,
|
||||||
model: String,
|
|
||||||
user_prompt: String,
|
|
||||||
req: ChatRequest<'_>,
|
req: ChatRequest<'_>,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
app.waiting = true;
|
app.waiting = true;
|
||||||
@@ -215,8 +213,6 @@ async fn stream_ollama_response(
|
|||||||
async fn ollama_response<'a>(
|
async fn ollama_response<'a>(
|
||||||
app: &mut App,
|
app: &mut App,
|
||||||
client: Client,
|
client: Client,
|
||||||
model: String,
|
|
||||||
user_prompt: String,
|
|
||||||
req: ChatRequest<'a>,
|
req: ChatRequest<'a>,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user