Skip to content

Commit b63200a

Browse files
authored
Users/singankit/fix remote extra requirement (Azure#38550)
* Update _evaluate.py * Update setup.py * Update dev_requirements.txt * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md
1 parent 54d65c1 commit b63200a

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

sdk/evaluation/azure-ai-evaluation/CHANGELOG.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.1.0 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 1.0.1 (Unreleased)
84

95
### Bugs Fixed
10-
11-
### Other Changes
6+
- Fixed `[remote]` extra to be needed only when tracking results in Azure AI Studio.
7+
- Removing `azure-ai-inference` as dependency.
128

139
## 1.0.0 (2024-11-13)
1410

@@ -222,4 +218,4 @@ If `api_key` is not included in the `model_config`, the prompty runtime in `prom
222218

223219
- First preview
224220
- This package is port of `promptflow-evals`. New features will be added only to this package moving forward.
225-
- Added a `TypedDict` for `AzureAIProject` that allows for better intellisense and type checking when passing in project information
221+
- Added a `TypedDict` for `AzureAIProject` that allows for better intellisense and type checking when passing in project information

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,15 @@ def eval_batch_run(
810810
# Since tracing is disabled, pass None for target_run so a dummy evaluation run will be created each time.
811811
target_run = None
812812
trace_destination = _trace_destination_from_project_scope(azure_ai_project) if azure_ai_project else None
813-
studio_url = _log_metrics_and_instance_results(
814-
metrics,
815-
result_df,
816-
trace_destination,
817-
target_run,
818-
evaluation_name,
819-
)
813+
studio_url = None
814+
if trace_destination:
815+
studio_url = _log_metrics_and_instance_results(
816+
metrics,
817+
result_df,
818+
trace_destination,
819+
target_run,
820+
evaluation_name,
821+
)
820822

821823
result_df_dict = result_df.to_dict("records")
822824
result: EvaluationResult = {"rows": result_df_dict, "metrics": metrics, "studio_url": studio_url} # type: ignore

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# ---------------------------------------------------------
44

5-
VERSION = "1.1.0"
5+
VERSION = "1.0.1"

sdk/evaluation/azure-ai-evaluation/dev_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ pytest-asyncio
66
pytest-cov
77
pytest-mock
88
pytest-xdist
9+
azure-ai-inference>=1.0.0b4
910
-e ../azure-ai-evaluation[remote]

sdk/evaluation/azure-ai-evaluation/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
extras_require={
7777
"remote": [
7878
"promptflow-azure<2.0.0,>=1.15.0",
79-
"azure-ai-inference>=1.0.0b4",
8079
],
8180
},
8281
project_urls={

0 commit comments

Comments
 (0)