Skip to content

Commit

Permalink
log removals
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-palakurthi committed Jul 8, 2024
1 parent 37a07a2 commit fa9eb62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions engine/baml-runtime/src/internal/llm_client/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ where
stream: bool,
) -> Result<String> {
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)
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion engine/baml-schema-wasm/src/runtime_wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit fa9eb62

Please sign in to comment.