Skip to content

Commit ff5add0

Browse files
docs(readme): fix example snippet imports (#1569)
1 parent 24ab406 commit ff5add0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ List methods in the OpenAI API are paginated.
228228
This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually:
229229

230230
```python
231-
import openai
231+
from openai import OpenAI
232232

233233
client = OpenAI()
234234

@@ -246,7 +246,7 @@ Or, asynchronously:
246246

247247
```python
248248
import asyncio
249-
import openai
249+
from openai import AsyncOpenAI
250250

251251
client = AsyncOpenAI()
252252

0 commit comments

Comments
 (0)