diff --git a/engine/baml-runtime/src/internal/llm_client/primitive/openai/openai_client.rs b/engine/baml-runtime/src/internal/llm_client/primitive/openai/openai_client.rs index f4767acc9..c3e348567 100644 --- a/engine/baml-runtime/src/internal/llm_client/primitive/openai/openai_client.rs +++ b/engine/baml-runtime/src/internal/llm_client/primitive/openai/openai_client.rs @@ -236,9 +236,6 @@ impl RequestBuilder for OpenAIClient { ) }); - log::info!("Base url: {}", &self.properties.base_url); - log::info!("Proxy url: {:?}", &self.properties.proxy_url); - if !self.properties.query_params.is_empty() { req = req.query(&self.properties.query_params); } diff --git a/engine/baml-runtime/src/internal/llm_client/traits/mod.rs b/engine/baml-runtime/src/internal/llm_client/traits/mod.rs index 5c97e4de6..69f23abef 100644 --- a/engine/baml-runtime/src/internal/llm_client/traits/mod.rs +++ b/engine/baml-runtime/src/internal/llm_client/traits/mod.rs @@ -410,7 +410,7 @@ where stream: bool, ) -> Result { let rendered_prompt = RenderedPrompt::Chat(prompt.clone()); - log::info!("Stream is {}", stream); + let chat_messages = self.curl_call(ctx, &rendered_prompt).await?; let request_builder = self .build_request(either::Right(&chat_messages), stream) @@ -428,7 +428,7 @@ where .to_str() .map_err(|_| anyhow::anyhow!("Invalid header 'baml-render-url'"))?; let mut new_url = Url::from_str(url_str)?; - new_url.set_query(request.url().query()); // Preserve query parameters + *request.url_mut() = new_url; diff --git a/engine/baml-schema-wasm/src/runtime_wasm/mod.rs b/engine/baml-schema-wasm/src/runtime_wasm/mod.rs index e9bb45163..a84141794 100644 --- a/engine/baml-schema-wasm/src/runtime_wasm/mod.rs +++ b/engine/baml-schema-wasm/src/runtime_wasm/mod.rs @@ -21,7 +21,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen(start)] pub fn on_wasm_init() { - match console_log::init_with_level(log::Level::Info) { + match console_log::init_with_level(log::Level::Warn) { Ok(_) => web_sys::console::log_1(&"Initialized BAML runtime logging".into()), Err(e) => web_sys::console::log_1( &format!("Failed to initialize BAML runtime logging: {:?}", e).into(),