Skip to content

Commit c51ac91

Browse files
authored
Bugfix: None was being appended to output path for batch-endpoint invoke command and wasn't picking up the override output path (#36089)
* Reverting models to make sure calls to the simulator work * quotes * Spellcheck fixes * ignore the models for doc generation * Fixed the quotes on f strings * pylint skip file * Support for summarization * Adding a limit of 2 conversation turns for all but conversation simulators * exclude synthetic from mypy * Another lint fix * Skip the file causing linting issues * Bugfix on output to json_qa_lines and empty response from callbacks * Skip pylint * Add if/else on message to eval json util * adding max_simulation_results for sync call * Bugfix: None was being added to the end of the output path
1 parent 323fdc7 commit c51ac91

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_utils/_endpoint_utils.py

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

5-
# pylint: disable=protected-access
5+
# pylint: disable=protected-access,E0401,E0611
66

77
import ast
88
import concurrent.futures
@@ -218,7 +218,12 @@ def validate_scoring_script(deployment):
218218

219219

220220
def convert_v1_dataset_to_v2(output_data_set: DataVersion, file_name: str) -> Dict[str, Any]:
221-
v2_dataset = UriFileJobOutput(
222-
uri=f"azureml://datastores/{output_data_set.datastore_id}/paths/{output_data_set.path}/{file_name}"
223-
).serialize()
221+
if file_name:
222+
v2_dataset = UriFileJobOutput(
223+
uri=f"azureml://datastores/{output_data_set.datastore_id}/paths/{output_data_set.path}/{file_name}"
224+
).serialize()
225+
else:
226+
v2_dataset = UriFileJobOutput(
227+
uri=f"azureml://datastores/{output_data_set.datastore_id}/paths/{output_data_set.path}"
228+
).serialize()
224229
return {"output_name": v2_dataset}

0 commit comments

Comments
 (0)