Pular para o conteúdo principal
POST
Core - Create a Smart Router
Guia relacionado: guia de regras de roteamento. Consulte o guia de regras de roteamento para um passo a passo com exemplos.

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json
key
string
obrigatório

Unique key for the Smart Router within the workspace. Use lowercase letters, numbers, and hyphens.

models
string[]
obrigatório

Pool of 2 to 50 distinct eligible models. Each value uses provider/model format.

profile
enum<string>
obrigatório

Routing preference: quality favors more capable models, cost favors less expensive models, and balanced trades off both.

Opções disponíveis:
SMART_ROUTER_PROFILE_QUALITY,
SMART_ROUTER_PROFILE_BALANCED,
SMART_ROUTER_PROFILE_COST
session_affinity
object

Resposta

OK

smart_router
object
obrigatório