feat(cost): add budget tracking core and harden storage reliability (#292)

This commit is contained in:
Chummy 2026-02-16 23:40:47 +08:00 committed by GitHub
parent 8882746ced
commit e4944a5fc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 890 additions and 2 deletions

View file

@ -682,7 +682,8 @@ pub async fn start_channels(config: Config) -> Result<()> {
let provider_name = config
.default_provider
.clone()
.unwrap_or_else(|| "openrouter".to_string());
.unwrap_or_else(|| "openrouter".into());
let provider: Arc<dyn Provider> = Arc::from(providers::create_resilient_provider(
provider_name.as_str(),
config.api_key.as_deref(),