diff --git a/examples/flows/standard/basic/README.md b/examples/flows/standard/basic/README.md index 18faf182ecf..8642d513ad7 100644 --- a/examples/flows/standard/basic/README.md +++ b/examples/flows/standard/basic/README.md @@ -51,7 +51,7 @@ pf run create --flow . --data ./data.jsonl --stream pf run list # get a sample run name -name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_default")) | .name'| head -n 1 | tr -d '"') +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_variant_0")) | .name'| head -n 1 | tr -d '"') # show specific run detail pf run show --name $name @@ -92,7 +92,7 @@ pf run create --flow . --data ./data.jsonl --stream --environment-variables AZUR pf run create --file run.yml --stream # show outputs -name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_default")) | .name'| head -n 1 | tr -d '"') +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_variant_0")) | .name'| head -n 1 | tr -d '"') pf run show-details --name $name ``` @@ -118,7 +118,7 @@ pfazure run create --file run.yml --stream --runtime demo-mir pfazure run list -r 3 # get a sample run name -name=$(pfazure run list -r 100 | jq '.[] | select(.name | contains("basic_default")) | .name'| head -n 1 | tr -d '"') +name=$(pfazure run list -r 100 | jq '.[] | select(.name | contains("basic_variant_0")) | .name'| head -n 1 | tr -d '"') # show specific run detail pfazure run show --name $name diff --git a/src/promptflow/CHANGELOG.md b/src/promptflow/CHANGELOG.md index be2a5a932fb..149470e0c43 100644 --- a/src/promptflow/CHANGELOG.md +++ b/src/promptflow/CHANGELOG.md @@ -1,6 +1,11 @@ # Release History -## 0.1.0b7 (Upcoming) +## 0.1.0b7.post1 (2023.09.28) + +### Bug Fixed +- Fix extra dependency bug when importing `promptflow` without `azure-ai-ml` installed. + +## 0.1.0b7 (2023.09.27) ### Features Added diff --git a/src/promptflow/promptflow/_cli/_params.py b/src/promptflow/promptflow/_cli/_params.py index 4611cb4c9a4..cae388285b2 100644 --- a/src/promptflow/promptflow/_cli/_params.py +++ b/src/promptflow/promptflow/_cli/_params.py @@ -4,7 +4,8 @@ import argparse -from azure.ai.ml.constants._common import MAX_LIST_CLI_RESULTS +# TODO: avoid azure dependency here +MAX_LIST_CLI_RESULTS = 50 class AppendToDictAction(argparse._AppendAction): # pylint: disable=protected-access diff --git a/src/promptflow/promptflow/_cli/_pf_azure/_run.py b/src/promptflow/promptflow/_cli/_pf_azure/_run.py index 68473144ef6..a3e1720a5fc 100644 --- a/src/promptflow/promptflow/_cli/_pf_azure/_run.py +++ b/src/promptflow/promptflow/_cli/_pf_azure/_run.py @@ -465,6 +465,7 @@ def show_run_details( """Show a run details from cloud.""" pf = _get_azure_pf_client(subscription_id, resource_group, workspace_name, debug=debug) details = pf.runs.get_details(run=flow_run_id, max_results=max_results, all_results=all_results) + details.fillna(value="(Failed)", inplace=True) # replace nan with explicit prompt pretty_print_dataframe_as_table(details) diff --git a/src/promptflow/promptflow/_version.py b/src/promptflow/promptflow/_version.py index 68ee238ac5d..a9b98c3b556 100644 --- a/src/promptflow/promptflow/_version.py +++ b/src/promptflow/promptflow/_version.py @@ -2,4 +2,4 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- -VERSION = "0.0.1" +VERSION = "0.1.0b7.post1" diff --git a/src/promptflow/setup.py b/src/promptflow/setup.py index de530eae473..11a86b99e62 100644 --- a/src/promptflow/setup.py +++ b/src/promptflow/setup.py @@ -44,6 +44,7 @@ "tiktoken>=0.4.0", "strictyaml>=1.5.0,<2.0.0", # used to identify exact location of validation error "waitress>=2.1.2,<3.0.0", # used to serve local service + "opencensus-ext-azure<2.0.0", # configure opencensus to send telemetry to azure monitor ] setup(