feat: first time automated ollama install experience and openrouter (#3881)

Co-authored-by: Zane Staggs <zane@squareup.com>
This commit is contained in:
Michael Neale
2025-08-08 11:41:53 +10:00
committed by GitHub
parent 43d6d1a492
commit e124bb084f
9 changed files with 1444 additions and 10 deletions
+6
View File
@@ -202,6 +202,12 @@ fn create_request_based_on_model(
payload = update_request_for_anthropic(&payload);
}
// Always add transforms: ["middle-out"] for OpenRouter to handle prompts > context size
payload
.as_object_mut()
.unwrap()
.insert("transforms".to_string(), json!(["middle-out"]));
Ok(payload)
}