Try Bifrost Enterprise free for 14 days. Explore now
A valid request URL is required to generate request examples{
"message": "<string>",
"rule": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"cel_expression": "<string>",
"targets": [
{
"weight": 0.5,
"provider": "<string>",
"model": "<string>",
"key_id": "<string>"
}
],
"fallbacks": [
"<string>"
],
"scope_id": "<string>",
"priority": 123,
"query": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Creates a new CEL-based routing rule for intelligent request routing. Provider and model can be left empty to use the incoming request values.
A valid request URL is required to generate request examples{
"message": "<string>",
"rule": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"cel_expression": "<string>",
"targets": [
{
"weight": 0.5,
"provider": "<string>",
"model": "<string>",
"key_id": "<string>"
}
],
"fallbacks": [
"<string>"
],
"scope_id": "<string>",
"priority": 123,
"query": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Request to create a routing rule
Scope level for the rule
global Name of the routing rule
CEL expression for matching
Weighted routing targets; weights must sum to 1; target is selected probabilistically at request time
1Show child attributes
Priority for rule evaluation (lower number = higher priority)
Optional description
Whether the rule is enabled
Fallback providers in format "provider/model"
ID for the scope (required if scope is not global)
Visual rule tree structure
Was this page helpful?