nvidia 的網站圖示

NVIDIA: Switchyard

nvidia/switchyard

Switchyard is an open-source model routing system that switches between multiple models to optimize the cost of requests. By default it will use OpenRouter market data to select the most popular low and high cost models. You can pass in two choices in the models parameter as well as specify any of the routing algorithms Switchyard offers. Details in the Switchyard docs. OpenRouter then applies its normal provider routing, fallbacks and billing for the chosen model.

API

可直接用於呼叫此模型的程式碼。OpenRouter 的 API 與 OpenAI 相容,只需替換基底 URL 即可使用大多數 SDK。切換模型時,唯一需要變更的是下方的模型 slug。

目前無法透過歐盟區域內路由使用。 區域內路由文件

說明文件

在 OpenRouter 上使用 NVIDIA: Switchyard 開發的指南、實作食譜、部落格文章與工具。

常見問題