mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 16:22:49 +00:00
feat: azure native tests
* feat: add Azure AI Inference support and related tests - Introduced the `azure-ai-inference` package with version `1.0.0b9` and its dependencies in `uv.lock` and `pyproject.toml`. - Added new test files for Azure LLM functionality, including tests for Azure completion and tool handling. - Implemented comprehensive test cases to validate Azure-specific behavior and integration with the CrewAI framework. - Enhanced the testing framework to mock Azure credentials and ensure proper isolation during tests. * feat: enhance AzureCompletion class with Azure OpenAI support - Added support for the Azure OpenAI endpoint in the AzureCompletion class, allowing for flexible endpoint configurations. - Implemented endpoint validation and correction to ensure proper URL formats for Azure OpenAI deployments. - Enhanced error handling to provide clearer messages for common HTTP errors, including authentication and rate limit issues. - Updated tests to validate the new endpoint handling and error messaging, ensuring robust integration with Azure AI Inference. - Refactored parameter preparation to conditionally include the model parameter based on the endpoint type.
This commit is contained in:
0
lib/crewai/tests/llms/__init__.py
Normal file
0
lib/crewai/tests/llms/__init__.py
Normal file
3
lib/crewai/tests/llms/azure/__init__.py
Normal file
3
lib/crewai/tests/llms/azure/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# Azure LLM tests
|
||||
|
||||
|
||||
1087
lib/crewai/tests/llms/azure/test_azure.py
Normal file
1087
lib/crewai/tests/llms/azure/test_azure.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user