Skip to main content

ai_agents_preset_model_ai_endpoints_providers

Creates, updates, deletes, gets or lists an ai_agents_preset_model_ai_endpoints_providers resource.

Overview​

Nameai_agents_preset_model_ai_endpoints_providers
TypeResource
Idovh.public_cloud.ai_agents_preset_model_ai_endpoints_providers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
api_basestringOpenAI-compatible base URL, published so a client can list models from its /models sub-path (wire: apiBase)
default_modelstringModel seeded when the caller states none. Empty when this deployment states no default. (wire: defaultModel)
enabledbooleanWhether the OVHcloud AI Endpoints provider preset is available on this deployment
integrated_authbooleanWhether OVHcloud provisions the AI Endpoints credential for the agent, so the caller does not have to supply one (wire: integratedAuth)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject_idStates whether the OVHcloud AI Endpoints provider preset can be selected, whether OVHcloud provisions its credential so the caller need not supply one, the base URL whose /models sub-path lists the models available, and the model used when the caller names none.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

States whether the OVHcloud AI Endpoints provider preset can be selected, whether OVHcloud provisions its credential so the caller need not supply one, the base URL whose /models sub-path lists the models available, and the model used when the caller names none.

SELECT
api_base,
default_model,
enabled,
integrated_auth
FROM ovh.public_cloud.ai_agents_preset_model_ai_endpoints_providers
WHERE project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;