mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-22 06:18:14 +00:00
Fixes #4260 This PR adds support for Azure endpoints that don't end with openai.azure.com, such as cognitiveservices.azure.com, services.ai.azure.com, and other *.azure.com domains. Changes: - Add _is_azure_endpoint() method to detect various Azure endpoint formats - Add is_azure_endpoint flag to track if endpoint is any Azure endpoint - Support base_url parameter as alias for endpoint (consistency with other providers) - Update _validate_and_fix_endpoint() to only auto-construct deployment path for openai.azure.com endpoints, leaving other Azure endpoints unchanged - Add comprehensive tests for the new functionality Co-Authored-By: João <joao@crewai.com>