Load models from static file (#8153)

- Load models from static file as a fallback
- Make API users use this file directly
- Add tests to make sure updates to the file always serialize
This commit is contained in:
Ahmed Ibrahim
2025-12-17 14:34:13 -08:00
committed by GitHub
parent a9a7cf3488
commit 927a6acbea
10 changed files with 606 additions and 85 deletions

View File

@@ -762,7 +762,7 @@ async fn includes_configured_effort_in_request() -> anyhow::Result<()> {
}
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn includes_no_effort_in_request() -> anyhow::Result<()> {
async fn includes_default_effort_in_request() -> anyhow::Result<()> {
skip_if_no_network!(Ok(()));
let server = MockServer::start().await;
@@ -791,7 +791,7 @@ async fn includes_no_effort_in_request() -> anyhow::Result<()> {
.get("reasoning")
.and_then(|t| t.get("effort"))
.and_then(|v| v.as_str()),
None
Some("medium")
);
Ok(())