chore: azureAssistants ENDPOINTS exclusion warning

This commit is contained in:
Danny Avila 2024-05-19 12:48:36 -04:00
parent 84f68f9a15
commit 1c5e827ce9
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364

View file

@ -41,6 +41,17 @@ function azureConfigSetup(config) {
);
}
if (
azureConfiguration.assistants &&
process.env.ENDPOINTS &&
!process.env.ENDPOINTS.includes(EModelEndpoint.azureAssistants)
) {
logger.warn(
`Azure Assistants are configured, but the endpoint will not be accessible as it's not included in the ENDPOINTS environment variable.
Please add the value "${EModelEndpoint.azureAssistants}" to the ENDPOINTS list if expected.`,
);
}
return {
modelNames,
modelGroupMap,