OpenAPI 3.1.02026-08-226994571.1 MB
1e929292ddd5
model management
Create Model Group
Create a new access group containing multiple model names.
An access group is a named collection of model groups that can be referenced by teams/keys for simplified access control.
Example:
curl -X POST 'http://localhost:4000/access_group/new' \
-H 'Authorization: Bearer sk-1234' \
-H 'Content-Type: application/json' \
-d '{
"access_group": "production-models",
"model_names": ["gpt-4", "claude-3-opus", "gemini-pro"]
}'
Parameters:
- access_group: str - The access group name (e.g., "production-models")
- model_names: List[str] - List of existing model groups to include
Returns:
- NewModelGroupResponse with the created access group details
Raises:
- HTTPException 400: If any model names don't exist
- HTTPException 500: If database operations fail
post/access_group/new
Request body
Response
Successful Response