ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Retrieve all LLM models assigned to a specific tenant.
Args: request: The HTTP request. org: The unique identifier of the tenant.
Returns: Response: A list of LLM models assigned to the tenant.
Raises: NotFound: If the specified tenant does not have any associated models. ValidationError: If an unexpected error occurs.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/settings/tenant-llm/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/settings/tenant-llm/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/settings/tenant-llm/' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ { … } ] ]
Request
Create or update an LLM model for a tenant.
Accessible only to tenant administrators.
Args: request: The HTTP request containing LLM model details. org: The unique identifier of the tenant.
Returns: Response: Details of the newly created or updated LLM model.
Raises: ValidationError: If request data is invalid. NotFound: If the tenant does not exist.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/settings/tenant-llm/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/settings/tenant-llm/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/settings/tenant-llm/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"tenant": "example-tenant",
"model_name": "gpt-4",
"configuration": {
"max_tokens": 2000,
"temperature": 0.8,
"top_p": 0.85
}
}'
{ "info": "LLM model for tenant created successfully." }
Request
Retrieve a list of mentors starred by a specific user.
Args: request: The HTTP request. org: The organization/tenant identifier. user_id: The ID of the user to retrieve starred mentors for.
Returns: Response: A list of the user's starred mentors, sorted by most recently accessed.
Raises: NotFound: If the specified student does not exist. BadRequest: If the request is invalid.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/starred-mentors/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/starred-mentors/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/starred-mentors/' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ { … }, { … } ] ]