Skip to content

Commit d7c04c6

Browse files
Merge pull request #285251 from likebupt/pf-deploy-update-20240822
remove env var for run mode
2 parents 54da3a3 + d26ba33 commit d7c04c6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

articles/machine-learning/prompt-flow/how-to-deploy-to-code.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,6 @@ environment:
213213
instance_type: Standard_E16s_v3
214214
instance_count: 1
215215
environment_variables:
216-
217-
# "compute" mode is the default mode, if you want to deploy to serving mode, you need to set this env variable to "serving"
218-
PROMPTFLOW_RUN_MODE: serving
219-
220216
# for pulling connections from workspace
221217
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>
222218
@@ -253,9 +249,6 @@ instance_type: <kubernetes custom instance type>
253249
instance_count: 1
254250
environment_variables:
255251
256-
# "compute" mode is the default mode, if you want to deploy to serving mode, you need to set this env variable to "serving"
257-
PROMPTFLOW_RUN_MODE: serving
258-
259252
# for pulling connections from workspace
260253
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>
261254
@@ -275,7 +268,7 @@ environment_variables:
275268
| Environment | The environment to host the model and code. It contains: <br> - `image`<br> - `inference_config`: is used to build a serving container for online deployments, including `liveness route`, `readiness_route`, and `scoring_route` . |
276269
| Instance type | The VM size to use for the deployment. For the list of supported sizes, see [Managed online endpoints SKU list](../reference-managed-online-endpoints-vm-sku-list.md). |
277270
| Instance count | The number of instances to use for the deployment. Base the value on the workload you expect. For high availability, we recommend that you set the value to at least `3`. We reserve an extra 20% for performing upgrades. For more information, see [limits for online endpoints](../how-to-manage-quotas.md#azure-machine-learning-online-endpoints-and-batch-endpoints). |
278-
| Environment variables | Following environment variables need to be set for endpoints deployed from a flow: <br> - (required) `PROMPTFLOW_RUN_MODE: serving`: specify the mode to serving <br> - (required) `PRT_CONFIG_OVERRIDE`: for pulling connections from workspace <br> - (optional) `PROMPTFLOW_RESPONSE_INCLUDED_FIELDS:`: When there are multiple fields in the response, using this env variable will filter the fields to expose in the response. <br> For example, if there are two flow outputs: "answer", "context", and if you only want to have "answer" in the endpoint response, you can set this env variable to '["answer"]'. |
271+
| Environment variables | Following environment variables need to be set for endpoints deployed from a flow: <br> - (required) `PRT_CONFIG_OVERRIDE`: for pulling connections from workspace <br> - (optional) `PROMPTFLOW_RESPONSE_INCLUDED_FIELDS:`: When there are multiple fields in the response, using this env variable will filter the fields to expose in the response. <br> For example, if there are two flow outputs: "answer", "context", and if you only want to have "answer" in the endpoint response, you can set this env variable to '["answer"]'. |
279272

280273
> [!IMPORTANT]
281274
>

0 commit comments

Comments
 (0)