Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions crates/goose/src/providers/databricks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,8 @@ impl Provider for DatabricksProvider {
.collect();

if models.is_empty() {
tracing::debug!("No serving endpoints found in Databricks workspace");
Ok(None)
} else {
tracing::debug!(
"Found {} serving endpoints in Databricks workspace",
models.len()
);
Ok(Some(models))
}
}
Expand Down
20 changes: 0 additions & 20 deletions crates/goose/src/providers/pricing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,8 @@ impl PricingCache {
let age_days = (now - cached.fetched_at) / (24 * 60 * 60);

if age_days < CACHE_TTL_DAYS {
tracing::debug!(
"Loaded pricing data from disk cache (age: {} days)",
age_days
);
Ok(Some(cached))
} else {
tracing::debug!("Disk cache expired (age: {} days)", age_days);
Ok(None)
}
}
Expand All @@ -101,8 +96,6 @@ impl PricingCache {
let cache_path = cache_dir.join(CACHE_FILE_NAME);
let json_data = serde_json::to_vec_pretty(data)?;
tokio::fs::write(&cache_path, json_data).await?;

tracing::debug!("Saved pricing data to disk cache");
Ok(())
}

Expand Down Expand Up @@ -171,19 +164,6 @@ impl PricingCache {
fetched_at: SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs(),
};

// Log how many models we fetched
let total_models: usize = cached_data
.pricing
.values()
.map(|models| models.len())
.sum();
tracing::debug!(
"Fetched pricing for {} providers with {} total models from OpenRouter",
cached_data.pricing.len(),
total_models
);

// Save to disk
self.save_to_disk(&cached_data).await?;

// Update memory cache
Expand Down