From f97e468cb43cbe85d29d4caf4363258a82086686 Mon Sep 17 00:00:00 2001 From: skcd Date: Wed, 7 Feb 2024 19:59:04 +0000 Subject: [PATCH] [sidecar] fix things for deepseek --- llm_client/src/clients/ollama.rs | 1 - sidecar/src/application/logging/tracing.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llm_client/src/clients/ollama.rs b/llm_client/src/clients/ollama.rs index fa4f6a5b2..e29059665 100644 --- a/llm_client/src/clients/ollama.rs +++ b/llm_client/src/clients/ollama.rs @@ -176,7 +176,6 @@ impl LLMClient for OllamaClient { while let Some(chunk) = response.chunk().await? { let value = serde_json::from_slice::(chunk.to_vec().as_slice())?; buffered_string.push_str(&value.response); - println!("{}", &buffered_string); sender.send(LLMClientCompletionResponse::new( buffered_string.to_owned(), Some(value.response), diff --git a/sidecar/src/application/logging/tracing.rs b/sidecar/src/application/logging/tracing.rs index 6bff165c5..938ed078c 100644 --- a/sidecar/src/application/logging/tracing.rs +++ b/sidecar/src/application/logging/tracing.rs @@ -11,7 +11,8 @@ pub fn tracing_subscribe(config: &Configuration) -> bool { .with_filter( EnvFilter::from_default_env() .add_directive("hyper=off".parse().unwrap()) - .add_directive("tantivy=off".parse().unwrap()), // .add_directive("error".parse().unwrap()), + .add_directive("tantivy=off".parse().unwrap()) + .add_directive("error".parse().unwrap()), ); let file_appender = tracing_appender::rolling::daily(config.log_dir(), "codestory.log"); let (non_blocking, guard) = tracing_appender::non_blocking(file_appender);