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

Add warning message in sdk/cli to consume new llm tools #3196

Closed
wants to merge 1 commit into from

Conversation

16oeahr
Copy link
Contributor

@16oeahr 16oeahr commented May 10, 2024

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.
  • Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: 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.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@16oeahr 16oeahr requested a review from a team as a code owner May 10, 2024 08:15
Copy link

promptflow SDK CLI Azure E2E Test Result user/yalu4/llm_warning

  4 files    4 suites   4m 11s ⏱️
241 tests 205 ✅  36 💤 0 ❌
964 runs  820 ✅ 144 💤 0 ❌

Results for commit b3779ec.

Copy link

SDK CLI Global Config Test Result user/yalu4/llm_warning

6 tests   6 ✅  1m 13s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit b3779ec.

Copy link

promptflow-core test result

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit b3779ec.

Copy link

Executor Unit Test Result user/yalu4/llm_warning

792 tests   792 ✅  3m 46s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit b3779ec.

Copy link

Executor E2E Test Result user/yalu4/llm_warning

243 tests   238 ✅  5m 32s ⏱️
  1 suites    5 💤
  1 files      0 ❌

Results for commit b3779ec.

Copy link

SDK CLI Test Result user/yalu4/llm_warning

    4 files      4 suites   1h 2m 16s ⏱️
  691 tests   653 ✅  38 💤 0 ❌
2 764 runs  2 612 ✅ 152 💤 0 ❌

Results for commit b3779ec.

flow = Flow.load(source, **kwargs)
if check_legacy_llm_in_flow_nodes(flow._data):
logger.warning(
"Please upgrade to the latest version of promptflow-tools to consume new LLM tools. "
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to wait for new tool pypi release

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should specify which tool version.

@@ -20,6 +20,7 @@
PROMPTY_EXTENSION,
)
from promptflow._core._errors import MetaFileNotFound, MetaFileReadError
from promptflow._core.tool import ToolType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -14,17 +14,17 @@ outputs:
is_chat_output: true
nodes:
- name: chat
type: llm
type: custom_llm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel risky to modify now, which may make local user fail to run new created flow.

@@ -14,17 +14,17 @@ outputs:
is_chat_output: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not change other flow templates?

flow = Flow.load(source, **kwargs)
if check_legacy_llm_in_flow_nodes(flow._data):
logger.warning(
"Please upgrade to the latest version of promptflow-tools to consume new LLM tools. "
Copy link
Contributor

@chjinche chjinche May 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides upgrade local pf-tools version, I think there are other things people also need to do to dismiss the warning.

Please consider thoughtfully.

@chjinche
Copy link
Contributor

No PR description?

Copy link

Hi, thank you for your interest in helping to improve the prompt flow experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue/pull request label May 25, 2024
Copy link

github-actions bot commented Jun 2, 2024

Hi, thank you for your contribution. Since there has not been recent engagement, we are going to close this out. Feel free to reopen if you'd like to continue working on these changes. Please be sure to remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions bot closed this Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity There has been no recent activity on this issue/pull request promptflow-core promptflow-devkit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants