Skip to content

Commit ee25d7f

Browse files
authored
(AzureCXP) fixes MicrosoftDocs/azure-ai-docs#411212
Updated line no's 387 - 396 From: endpoint_name="meta-llama3-8b-qwerty" serverless_endpoint = ServerlessEndpoint( name=endpoint_name, model_id=model_id ) created_endpoint = client.serverless_endpoints.begin_create_or_update( serverless_endpoint ).result() To: endpoints = ml_client.online_endpoints.list() for endpoint in endpoints: print(endpoint.name)
1 parent a4ad9b8 commit ee25d7f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

articles/machine-learning/how-to-deploy-models-serverless.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,9 @@ In this section, you create an endpoint with the name **meta-llama3-8b-qwerty**.
384384
# [Python SDK](#tab/python)
385385
386386
```python
387-
endpoint_name="meta-llama3-8b-qwerty"
388-
389-
serverless_endpoint = ServerlessEndpoint(
390-
name=endpoint_name,
391-
model_id=model_id
392-
)
393-
394-
created_endpoint = client.serverless_endpoints.begin_create_or_update(
395-
serverless_endpoint
396-
).result()
387+
endpoints = ml_client.online_endpoints.list()
388+
for endpoint in endpoints:
389+
print(endpoint.name)
397390
```
398391
399392
# [ARM](#tab/arm)

0 commit comments

Comments
 (0)