Get LLM policy
import requests
url = "https://api.datagrid.com/v1/models/policy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/models/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/models/policy \
--header 'Authorization: Bearer <token>'{
"object": "llm_policy",
"disabled_providers": [
"<string>"
]
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Models
Get LLM policy
Returns the LLM providers that the teamspace’s Procore company has disabled. The list is empty when the account is not linked to a Procore company or the company has not disabled any providers.
GET
/
models
/
policy
Get LLM policy
import requests
url = "https://api.datagrid.com/v1/models/policy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/models/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/models/policy \
--header 'Authorization: Bearer <token>'{
"object": "llm_policy",
"disabled_providers": [
"<string>"
]
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Response
The LLM policy for the teamspace