Preferences
Preferences
Create a preference ID
Create a new preference ID for personalized LLM routing.
A preference ID enables personalized routing by tracking your feedback and learning your preferences over time. Once created, you can:
- Use it in model_select() calls to get personalized routing decisions
- Train a custom router specific to your use case
Workflow:
- Create a preference ID (this endpoint)
- Use the preference_id in POST /v2/modelRouter/modelSelect requests
- Optionally train a custom router via POST /v2/pzn/trainCustomRouter
Benefits:
- Personalized routing for your specific use case
- Ability to train custom routers on your evaluation data
Note: If you don't provide a preference_id in model_select() calls, the default router will be used.
post/v2/preferences/userPreferenceCreate
Request body
Example request
{
"name": "My Production Router"
}Response
Successfully created preference ID
Example response
{
"preference_id": "550e8400-e29b-41d4-a716-446655440000"
}