Skip to content

Commit

Permalink
Release/promptflow/1.8.0 (#2607)
Browse files Browse the repository at this point in the history
# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.

# All Promptflow Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes].**
- [ ] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [ ] Title of the pull request is clear and informative.
- [ ] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [ ] Pull request includes test coverage for the included changes.

---------

Signed-off-by: Brynn Yin <[email protected]>
Co-authored-by: Philip Gao <[email protected]>
Co-authored-by: Zhengfei Wang <[email protected]>
Co-authored-by: passionwdy <[email protected]>
Co-authored-by: Danyang Wang <[email protected]>
Co-authored-by: Ying Chen <[email protected]>
Co-authored-by: Ying Chen <[email protected]>
Co-authored-by: Han Wang <[email protected]>
  • Loading branch information
8 people authored Apr 10, 2024
1 parent ceb28a4 commit dfbdee0
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 24 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Prepare sample requirements
working-directory: examples/flows/chat/chat-with-pdf
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Prepare requirements
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.workspace }}/examples/requirements.txt
pip install -r ${{ github.workspace }}/examples/dev_requirements.txt
pip freeze
pf --version
shell: bash -el {0}
- name: Prepare sample requirements
working-directory: examples/flows/chat/chat-with-pdf
run: |
pip install -r requirements.txt
- name: Create Chat With PDF Custom Connection
working-directory: examples/flows/chat/chat-with-pdf
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Prepare sample requirements
working-directory: examples/flows/chat/chat-with-pdf
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Prepare requirements
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.workspace }}/examples/requirements.txt
pip install -r ${{ github.workspace }}/examples/dev_requirements.txt
pip freeze
pf --version
shell: bash -el {0}
- name: Prepare sample requirements
working-directory: examples/flows/chat/chat-with-pdf
run: |
pip install -r requirements.txt
- name: Create Chat With PDF Custom Connection
working-directory: examples/flows/chat/chat-with-pdf
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ steps:
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Prepare sample requirements
working-directory: {{ gh_working_dir }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Prepare requirements
run: |
python -m pip install --upgrade pip
pip install -r ${{ '{{' }} github.workspace }}/examples/requirements.txt
pip install -r ${{ '{{' }} github.workspace }}/examples/dev_requirements.txt
pip freeze
pf --version
shell: bash -el {0}
- name: Prepare sample requirements
working-directory: {{ gh_working_dir }}
run: |
pip install -r requirements.txt
- name: Create Chat With PDF Custom Connection
working-directory: {{ gh_working_dir }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-azure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "promptflow-azure"
version = "1.8.0.dev0"
version = "1.9.0.dev0"
description = "Prompt flow azure"
include = [
"promptflow/azure/resources/*"
Expand Down
8 changes: 5 additions & 3 deletions src/promptflow-core/promptflow/core/_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ class MalformedConnectionProviderConfig(UserErrorException):
"""Exception raised when connection provider config is malformed."""

def __init__(self, provider_config, **kwargs):
message = "Malformed connection provider config, expected azureml://subscriptions/<subscription_id>/"
"resourceGroups/<resource_group>/providers/Microsoft.MachineLearningServices/"
f"workspaces/<workspace_name>, got {provider_config}"
message = (
"Malformed connection provider config, expected azureml://subscriptions/<subscription_id>/"
"resourceGroups/<resource_group>/providers/Microsoft.MachineLearningServices/"
f"workspaces/<workspace_name>, got {provider_config}"
)
super().__init__(target=ErrorTarget.CORE, message=message, **kwargs)


Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "promptflow-core"
version = "1.1.0.dev0"
version = "1.9.0.dev0"
description = "Prompt flow core"
include = [
"promptflow/core/_serving/static/*",
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-devkit/promptflow/_cli/_pf/_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def serve_flow_python(args, source):
static_folder=static_folder,
environment_variables=list_of_dict_to_dict(args.environment_variables),
connection_provider=connection_provider,
inits=list_of_dict_to_dict(args.inits),
init=list_of_dict_to_dict(args.init),
)
if not args.skip_open_browser:
target = f"http://{args.host}:{args.port}"
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-devkit/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "promptflow-devkit"
version = "1.8.0.dev0"
version = "1.9.0.dev0"
description = "Prompt flow devkit"
include = [
"promptflow/_sdk/_service/static/*",
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-tracing/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
# poetry
[tool.poetry]
name = "promptflow-tracing"
version = "1.1.0.dev0"
version = "1.9.0.dev0"
description = "Prompt flow tracing"
license = "MIT"
authors = [
Expand Down
10 changes: 9 additions & 1 deletion src/promptflow/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
- CognitiveSearchConnection: 2023-07-01-preview -> 2023-11-01


## 1.8.0 (Upcoming)
## 1.8.0 (2024.04.10)

### NOTICES
- `promptflow` package has been split into multiple packages. When installing `promptflow`, you will get the following packages:
- `promptflow`:
- `promptflow-tracing`: Tracing capability for promptflow.
- `promptflow-core`: Core functionality to run flow.
- `promptflow-devkit`: Development kit for promptflow.
- `promptflow-azure`: Azure extra requires(`promptflow[azure]`) for promptflow to integrate with Azure.

### Features Added
- [SDK/CLI] Create a run with `resume_from`, note that only run created with `promptflow>=1.8.0` can be used as the value of `resume_from`:
Expand Down

0 comments on commit dfbdee0

Please sign in to comment.