Skip to content

Commit

Permalink
remove log stateemetns i added in (#1230)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->



> [!IMPORTANT]
> Remove debug log statements from `is_allowed()` in `clientspec.rs` and
`single_call()` in `mod.rs`.
> 
>   - **Logging**:
> - Remove debug log statement from `is_allowed()` in `clientspec.rs`.
>     - Remove debug log statement from `single_call()` in `mod.rs`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 00f413a. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
hellovai authored Dec 11, 2024
1 parent 7bb6df4 commit 4bcdd19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions engine/baml-lib/llm-client/src/clientspec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,6 @@ impl UnresolvedFinishReasonFilter {

impl FinishReasonFilter {
pub fn is_allowed(&self, reason: Option<impl AsRef<str>>) -> bool {
log::warn!(
"debug is_allowed: {:?} {}",
self,
reason
.as_ref()
.map(|r| r.as_ref().to_string())
.unwrap_or("<none>".into())
);
match self {
Self::AllowList(allow) => {
let Some(reason) = reason.map(|r| r.as_ref().to_string()) else {
Expand Down
1 change: 0 additions & 1 deletion engine/baml-runtime/src/internal/llm_client/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ where
{
#[allow(async_fn_in_trait)]
async fn single_call(&self, ctx: &RuntimeContext, prompt: &RenderedPrompt) -> LLMResponse {
log::warn!("debug single_call start: {:?}", prompt);
if let RenderedPrompt::Chat(chat) = &prompt {
match process_media_urls(
self.model_features().resolve_media_urls,
Expand Down

0 comments on commit 4bcdd19

Please sign in to comment.