Files
crewAI/lib/crewai/tests/llms
Devin AI 7d81fc4db9 fix: support Azure endpoints other than openai.azure.com
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>
2026-01-21 10:38:21 +00:00
..
2025-12-01 18:56:56 -05:00
2025-12-01 18:56:56 -05:00
2025-10-20 14:10:19 -07:00