Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crazygao committed Apr 1, 2024
1 parent 00114f4 commit fd5e643
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/promptflow-core/promptflow/_utils/user_agent_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def setup_user_agent_to_operation_context(user_agent):

def append_promptflow_package_ua(operation_context: OperationContext):
try:
from promptflow._version import VERSION as PF_VERSION
from promptflow.core._version import VERSION as PF_VERSION

operation_context.append_user_agent(f"promptflow/{PF_VERSION}")
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-devkit/promptflow/_cli/_user_agent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from promptflow._version import VERSION
from promptflow.client._version import VERSION

USER_AGENT = "{}/{}".format("promptflow-cli", VERSION)
2 changes: 1 addition & 1 deletion src/promptflow-devkit/promptflow/_internal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
set_context,
transpose,
)
from promptflow._version import VERSION
from promptflow.client._version import VERSION
from promptflow.core._serving.response_creator import ResponseCreator
from promptflow.core._serving.swagger import generate_swagger
from promptflow.core._serving.utils import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from promptflow._sdk._utils import get_promptflow_sdk_version, read_write_by_user
from promptflow._utils.logger_utils import get_cli_sdk_logger
from promptflow._utils.yaml_utils import dump_yaml, load_yaml
from promptflow._version import VERSION
from promptflow.client._version import VERSION
from promptflow.exceptions import PromptflowException, UserErrorException

logger = get_cli_sdk_logger()
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-devkit/promptflow/_sdk/_user_agent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from promptflow._version import VERSION
from promptflow.client._version import VERSION

USER_AGENT = "{}/{}".format("promptflow-sdk", VERSION)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
last_frame_info,
remove_suffix,
)
from promptflow._version import VERSION
from promptflow.core._version import VERSION
from promptflow.exceptions import (
ErrorTarget,
PromptflowException,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from promptflow._utils.exception_utils import ExceptionPresenter, JsonSerializedPromptflowException, ResponseCode
from promptflow._utils.logger_utils import bulk_logger, flow_logger, logger, service_logger
from promptflow._version import VERSION as PF_VERSION
from promptflow.core._version import VERSION as PF_VERSION
from promptflow.core._version import __version__ as PF_CORE_VERSION
from promptflow.executor._service._errors import ExecutionTimeoutError
from promptflow.executor._service.contracts.execution_request import BaseExecutionRequest, FlowExecutionRequest
Expand Down

0 comments on commit fd5e643

Please sign in to comment.