feat: novita, nvidia nim, vercel ai gateway

This commit is contained in:
2026-10-13 23:37:24 -04:00
parent a0d95d52e4
commit f4f657c219
6 changed files with 918 additions and 794 deletions

View File

@@ -49,6 +49,8 @@ impl Shortcut {
(P::CloudflareWorkersAi, "clef-flash".into()),
(P::OpenRouter, "respan/span-01-lite:free".into()),
(P::OpenRouter, "respan/span-01-lite".into()),
(P::VercelAiGateway, "convaiinnovations/laya-free".into()),
(P::VercelAiGateway, "convaiinnovations/laya".into()),
]
}
S::M => {
@@ -132,6 +134,8 @@ pub async fn create_system_one(
})
.collect(),
Provider::Mistral => unreachable!(),
Provider::NovitaAi => unreachable!(),
Provider::NvidiaNim => unreachable!(),
Provider::OpenRouter => state
.app_args
.openrouter_api_key
@@ -144,6 +148,18 @@ pub async fn create_system_one(
.build()
})
.collect(),
Provider::VercelAiGateway => state
.app_args
.vercel_ai_gateway_api_key
.iter()
.cloned()
.map(|api_key| {
Upstream::builder()
.url("https://ai-gateway.vercel.sh/typesafe/v1/systemone".parse().expect("TODO"))
.api_key(api_key)
.build()
})
.collect(),
Provider::ZAi => unreachable!(),
};