feat: opt-in to vercel ai gateway leaderboard (#9259)

This commit is contained in:
Alex Hancock
2026-05-16 14:29:40 -04:00
committed by GitHub
parent 3254d442c9
commit ca9f98d1cd
2 changed files with 14 additions and 0 deletions
@@ -849,6 +849,16 @@ mod tests {
);
assert_eq!(config.supports_streaming, Some(true));
assert!(!config.models.is_empty());
let headers = config
.headers
.as_ref()
.expect("vercel_ai_gateway should set attribution headers");
assert_eq!(
headers.get("http-referer").map(String::as_str),
Some("https://goose-docs.ai")
);
assert_eq!(headers.get("x-title").map(String::as_str), Some("goose"));
}
#[test]
@@ -5,6 +5,10 @@
"description": "Unified gateway to OpenAI, Anthropic, Google, xAI, and many more frontier models via Vercel AI Gateway",
"api_key_env": "AI_GATEWAY_API_KEY",
"base_url": "https://ai-gateway.vercel.sh/v1/chat/completions",
"headers": {
"http-referer": "https://goose-docs.ai",
"x-title": "goose"
},
"models": [
{
"name": "anthropic/claude-sonnet-4.6",