Skip to content

Commit cedd574

Browse files
docs: upgrade models in examples to latest version (#989)
1 parent 626bc34 commit cedd574

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/async_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
async def main() -> None:
1212
stream = await client.completions.create(
13-
model="text-davinci-003",
13+
model="gpt-3.5-turbo-instruct",
1414
prompt="Say this is a test",
1515
stream=True,
1616
)

examples/streaming.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def sync_main() -> None:
1414
client = OpenAI()
1515
response = client.completions.create(
16-
model="text-davinci-002",
16+
model="gpt-3.5-turbo-instruct",
1717
prompt="1,2,3,",
1818
max_tokens=5,
1919
temperature=0,
@@ -33,7 +33,7 @@ def sync_main() -> None:
3333
async def async_main() -> None:
3434
client = AsyncOpenAI()
3535
response = await client.completions.create(
36-
model="text-davinci-002",
36+
model="gpt-3.5-turbo-instruct",
3737
prompt="1,2,3,",
3838
max_tokens=5,
3939
temperature=0,

0 commit comments

Comments
 (0)