Releases: Azure/azure-sdk-for-python
Releases · Azure/azure-sdk-for-python
azure-ai-evaluation_1.0.0
1.0.0 (2024-11-13)
Breaking Changes
- The
parallel
parameter has been removed from composite evaluators:QAEvaluator
,ContentSafetyChatEvaluator
, andContentSafetyMultimodalEvaluator
. To control evaluator parallelism, you can now use the_parallel
keyword argument, though please note that this private parameter may change in the future. - Parameters
query_response_generating_prompty_kwargs
anduser_simulator_prompty_kwargs
have been renamed toquery_response_generating_prompty_options
anduser_simulator_prompty_options
in the Simulator's call method.
Bugs Fixed
- Fixed an issue where the
output_path
parameter in theevaluate
API did not support relative path. - Output of adversarial simulators are of type
JsonLineList
and the helper functionto_eval_qr_json_lines
now outputs context from both user and assistant turns along withcategory
if it exists in the conversation - Fixed an issue where during long-running simulations, API token expires causing "Forbidden" error. Instead, users can now set an environment variable
AZURE_TOKEN_REFRESH_INTERVAL
to refresh the token more frequently to prevent expiration and ensure continuous operation of the simulation. - Fix
evaluate
function not producing aggregated metrics if ANY values to be aggregated were None, NaN, or
otherwise difficult to process. Such values are ignored fully, so the aggregated metric of[1, 2, 3, NaN]
would be 2, not 1.5.
Other Changes
- Refined error messages for serviced-based evaluators and simulators.
- Tracing has been disabled due to Cosmos DB initialization issue.
- Introduced environment variable
AI_EVALS_DISABLE_EXPERIMENTAL_WARNING
to disable the warning message for experimental features. - Changed the randomization pattern for
AdversarialSimulator
such that there is an almost equal number of Adversarial harm categories (e.g. Hate + Unfairness, Self-Harm, Violence, Sex) represented in theAdversarialSimulator
outputs. Previously, for 200max_simulation_results
a user might see 140 results belonging to the 'Hate + Unfairness' category and 40 results belonging to the 'Self-Harm' category. Now, user will see 50 results for each of Hate + Unfairness, Self-Harm, Violence, and Sex. - For the
DirectAttackSimulator
, the prompt templates used to generate simulated outputs for each Adversarial harm category will no longer be in a randomized order by default. To override this behavior, passrandomize_order=True
when you call theDirectAttackSimulator
, for example:
adversarial_simulator = DirectAttackSimulator(azure_ai_project=azure_ai_project, credential=DefaultAzureCredential())
outputs = asyncio.run(
adversarial_simulator(
scenario=scenario,
target=callback,
randomize_order=True
)
)
azure-appconfiguration-provider_2.0.0b3
2.0.0b3 (2024-11-13)
Breaking Changes
- Allocation Id value changed so other providers can match the value.
azure-servicebus_7.13.0
7.13.0 (2024-11-12)
Features Added
- Added
ssl_context
parameter to the clients to allow users to pass in the SSL context, in which case,connection_verify
will be ignored if specified.(#37246)
Bugs Fixed
- Fixed a broken f-string present in a
ValueError
when using the async client. (37695) - Fixed a bug with the incorrect error being raised for larger than allowed batch size. (38260)
- Fixed a bug with an error being raised when the fully-qualified namespace included a port, rather than ignoring the port. (37547)
Other Changes
- Added debug logging to track received messages.
azure-eventhub_5.13.0
5.13.0 (2024-11-12)
Features Added
- Added
ssl_context
parameter to the clients to allow users to pass in the SSL context, in which case,connection_verify
will be ignored if specified.
Other Changes
- Added debug logging to track received messages.
azure-cosmos_4.8.0
4.8.0 (2024-11-12)
This version and all future versions will support Python 3.13.
Features Added
- Added response headers directly to SDK item point operation responses. See PR 35791.
- SDK will now retry all ServiceRequestErrors (failing outgoing requests) before failing. Default number of retries is 3. See PR 36514.
- Added Retry Policy for Container Recreate in the Python SDK. See PR 36043
- Added option to disable write payload on writes. See PR 37365
- Added get feed ranges API. See PR 37687
- Added feed range support in
query_items_change_feed
. See PR 37687 - Added provisional helper APIs for managing session tokens. See PR 36971
- Added ability to get feed range for a partition key. See PR 36971
Breaking Changes
- Item-level point operations will now return
CosmosDict
andCosmosList
response types.
Responses will still be able to be used directly as previously, but will now have access to their response headers without need for a response hook. See PR 35791.
For more information on this, see our README section here.
Bugs Fixed
- Consolidated Container Properties Cache to be in the Client to cache partition key definition and container rid to avoid unnecessary container reads. See PR 35731.
- Fixed bug with client hangs when running into WriteForbidden exceptions. See PR 36514.
- Added retry handling logic for DatabaseAccountNotFound exceptions. See PR 36514.
- Fixed SDK regex validation that would not allow for item ids to be longer than 255 characters. See PR 36569.
- Fixed issue where 'NoneType' object has no attribute error was raised when a session retry happened during a query. See PR 37578.
- Fixed issue where passing subpartition partition key values as a tuple in a query would raise an error. See PR 38136
- Batch requests will now be properly considered as Write operation. See PR 38365.
Other Changes
- Getting offer thoughput when it has not been defined in a container will now give a 404/10004 instead of just a 404. See PR 36043
- Incomplete Partition Key Extractions in documents for Subpartitioning now gives 400/1001 instead of just a 400. See PR 36043
- SDK will now make database account calls every 5 minutes to refresh location cache. See PR 36514.
azure-ai-translation-document_1.1.0
1.1.0 (2024-11-15)
Other Changes
- Renamed SingleDocumentTranslationClient's API from
document_translate
totranslate
azure-ai-inference_1.0.0b6
1.0.0b6 (2024-11-11)
Features Added
- OpenTelemetry tracing:
- Method
AIInferenceInstrumentor().instrument()
updated with an input argumentenable_content_recording
. - Calling
AIInferenceInstrumentor().instrument()
twice no longer results in an exception. - Added method
AIInferenceInstrumentor().is_content_recording_enabled()
- Method
- Support Prompty and prompt template from string. PromptTemplate class outputs an array of dictionary with OpenAI compatible message format.
Bugs Fixed
- Fix tracing for asynchronous streaming.
azure-mgmt-containerservice_33.0.0
33.0.0 (2024-11-08)
Features Added
- Model AdvancedNetworking has a new parameter enabled
- Model AdvancedNetworkingSecurity has a new parameter enabled
- Model AgentPool has a new parameter e_tag
- Model ContainerServiceNetworkProfile has a new parameter advanced_networking
- Model ManagedCluster has a new parameter e_tag
- Model ManagedCluster has a new parameter node_resource_group_profile
- Model ManagedClusterAgentPoolProfile has a new parameter e_tag
- Model ManagedClusterAgentPoolProfileProperties has a new parameter e_tag
- Operation AgentPoolsOperations.begin_create_or_update has a new optional parameter if_match
- Operation AgentPoolsOperations.begin_create_or_update has a new optional parameter if_none_match
- Operation AgentPoolsOperations.begin_delete has a new optional parameter if_match
- Operation ManagedClustersOperations.begin_create_or_update has a new optional parameter if_match
- Operation ManagedClustersOperations.begin_create_or_update has a new optional parameter if_none_match
- Operation ManagedClustersOperations.begin_delete has a new optional parameter if_match
- Operation ManagedClustersOperations.begin_update_tags has a new optional parameter if_match
Breaking Changes
- Model AdvancedNetworkingObservability no longer has parameter tls_management
- Model AdvancedNetworkingSecurity no longer has parameter fqdn_policy
azure-ai-ml_1.22.0
1.22.0 (2024-11-11)
Features Added
- Update TLS version from 1.0 to 1.2
- Added support for Distillation jobs. Can be created by importing
disillation
fromazure.ai.ml.model_customization
Bugs Fixed
- Fix send email notification issue in model monitoring
azure-maps-route_1.0.0b2
1.0.0b2 (2024-11-06)
Breaking Changes
- Updated
get_route_matrix
to accept aRouteMatrixQuery
object instead of a dictionary.
Other Changes
- Fix route API version error
- Remove python 3.6 support
- Fix Sphinx errors