Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
crazygao committed Oct 23, 2023
1 parent 38a9206 commit 6f9c0a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/promptflow/promptflow/executor/_tool_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _resolve_llm_node(self, node: Node, convert_input_types=False) -> ResolvedTo

def _resolve_replay_node(self, node: Node, convert_input_types=False) -> ResolvedTool:
# in replay mode, replace original tool with just_return tool
# the tool iteslf just return saved record from storage_record.json
# the tool itself just return saved record from storage_record.json
# processing no logic.
if (node.api == "completion" or node.api == "chat") and (
node.connection == "azure_open_ai_connection" or node.provider == "AzureOpenAI"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
# ---------------------------------------------------------
import mock
import pytest
from azure.ai.ml.constants._common import AZUREML_RESOURCE_PROVIDER, RESOURCE_ID_FORMAT

from promptflow import PFClient
from promptflow._core.operation_context import OperationContext
from promptflow._sdk.operations._connection_operations import ConnectionOperations
from promptflow._sdk.operations._local_azure_connection_operations import LocalAzureConnectionOperations

AZUREML_RESOURCE_PROVIDER = "Microsoft.MachineLearningServices"
RESOURCE_ID_FORMAT = "/subscriptions/{}/resourceGroups/{}/providers/{}/workspaces/{}"


@pytest.mark.sdk_test
@pytest.mark.e2etest
Expand Down

0 comments on commit 6f9c0a1

Please sign in to comment.