File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
articles/ai-services/openai/how-to Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -929,6 +929,7 @@ curl GET https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses/resp_12
929
929
```python
930
930
from openai import AzureOpenAI
931
931
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
932
+ from time import sleep
932
933
933
934
token_provider = get_bearer_token_provider(
934
935
DefaultAzureCredential(), " https://cognitiveservices.azure.com/.default"
@@ -947,7 +948,7 @@ response = client.responses.create(
947
948
)
948
949
949
950
while response.status in {" queued" , " in_progress" }:
950
- print (f " Current status: { resp .status} " )
951
+ print (f " Current status: { response .status} " )
951
952
sleep(2 )
952
953
response = client.responses.retrieve(response.id)
953
954
@@ -1293,4 +1294,4 @@ For examples of how to use reasoning models with the responses API see the [reas
1293
1294
1294
1295
# # Computer use
1295
1296
1296
- Computer use with Playwright has moved to the [dedicated computer use model guide](./ computer- use.md# playwright-integration)
1297
+ Computer use with Playwright has moved to the [dedicated computer use model guide](./ computer- use.md# playwright-integration)
You can’t perform that action at this time.
0 commit comments