Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] Release/promptflow/0.1.0b7.post1 #659

Merged
merged 17 commits into from
Sep 28, 2023
6 changes: 3 additions & 3 deletions examples/flows/standard/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```

Expand All @@ -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
Expand Down
7 changes: 6 additions & 1 deletion src/promptflow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/promptflow/promptflow/_cli/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/promptflow/promptflow/_cli/_pf_azure/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion src/promptflow/promptflow/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------

VERSION = "0.0.1"
VERSION = "0.1.0b7.post1"
1 change: 1 addition & 0 deletions src/promptflow/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down