Skip to content

Commit

Permalink
remove env var for pf run mode (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
likebupt committed Aug 30, 2024
1 parent b9ad398 commit cb0bf2d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@ environment_variables:
# For example, if there are 2 flow outputs: "answer", "context", and I only want to have "answer" in the endpoint response, I can set this env variable to '["answer"]'
# PROMPTFLOW_RESPONSE_INCLUDED_FIELDS: '["category", "evidence"]'

# if you want to deploy to serving mode, you need to set this env variable to "serving"
PROMPTFLOW_RUN_MODE: serving
# currently it is for pulling connections from workspace
PRT_CONFIG_OVERRIDE: deployment.subscription_id=<subscription_id>,deployment.resource_group=<resource_group_name>,deployment.workspace_name=<workspace_name>,deployment.endpoint_name=basic-chat-endpoint,deployment.deployment_name=basic-chat-custom-docker
2 changes: 0 additions & 2 deletions cli/generative-ai/promptflow/deploy-flow/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ environment_variables:
# For example, if there are 2 flow outputs: "answer", "context", and I only want to have "answer" in the endpoint response, I can set this env variable to '["answer"]'
# PROMPTFLOW_RESPONSE_INCLUDED_FIELDS: '["category", "evidence"]'

# if you want to deploy to serving mode, you need to set this env variable to "serving"
PROMPTFLOW_RUN_MODE: serving
# currently it is for pulling connections from workspace
PRT_CONFIG_OVERRIDE: deployment.subscription_id=<subscription_id>,deployment.resource_group=<resource_group_name>,deployment.workspace_name=<workspace_name>,deployment.endpoint_name=basic-chat-endpoint,deployment.deployment_name=basic-chat-deployment
# enable this will collect metrics such as latency/token/etc during inference time to workspace default appinsights
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
" instance_type=\"Standard_E16s_v3\",\n",
" instance_count=1,\n",
" environment_variables={\n",
" \"PROMPTFLOW_RUN_MODE\": \"serving\",\n",
" # currently it is for pulling connections from workspace\n",
" \"PRT_CONFIG_OVERRIDE\": \"deployment.subscription_id=<subscription_id>,deployment.resource_group=<resource_group>,deployment.workspace_name=<workspace_name>,deployment.endpoint_name=<endpoint_name>,deployment.deployment_name=<deployment_name>\",\n",
" },\n",
Expand Down

0 comments on commit cb0bf2d

Please sign in to comment.