chore: import upstream snapshot with attribution
FreeBSD Smoke / FreeBSD Smoke (x86_64) (push) Has been cancelled
CI / Quality Guardrails (push) Has been cancelled
CI / Build & Test (macos-latest) (push) Has been cancelled
CI / Build & Test (ubuntu-latest) (push) Has been cancelled
CI / Build & Test (windows-latest) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / PowerShell Syntax (push) Has been cancelled
CI / Windows Cross-Target Check (Linux) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:10:34 +08:00
commit a789495a98
1551 changed files with 718128 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
//! Ad-hoc e2e check: fetch models.dev live and resolve a few model prices.
//! Run: cargo run --example pricing_e2e_check
fn main() {
jcode::model_pricing::schedule_refresh();
for _ in 0..100 {
std::thread::sleep(std::time::Duration::from_millis(200));
if let Some(c) = jcode::model_pricing::lookup("claude:api-key", "claude-fable-5") {
println!("fable-5: {:?}", c);
println!(
"deepseek-v4-flash: {:?}",
jcode::model_pricing::lookup("openai-compatible:deepseek", "deepseek-v4-flash")
);
println!(
"kimi-k2.5: {:?}",
jcode::model_pricing::lookup("openai-compatible:moonshotai", "kimi-k2.5")
);
println!(
"openrouter kimi: {:?}",
jcode::model_pricing::lookup("openrouter", "moonshotai/kimi-k2.5")
);
return;
}
}
eprintln!("TIMEOUT: no pricing after 20s");
std::process::exit(1);
}