Skip to content

Commit

Permalink
docs(examples): bump model to claude-2 in example scripts (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Jul 12, 2023
1 parent 2a8a202 commit 928ff37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/demo_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def main() -> None:
client = AsyncAnthropic()

res = await client.completions.create(
model="claude-v1",
model="claude-2",
prompt=f"{anthropic.HUMAN_PROMPT} how does a court case get to the Supreme Court? {anthropic.AI_PROMPT}",
max_tokens_to_sample=1000,
)
Expand Down
2 changes: 1 addition & 1 deletion examples/demo_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main() -> None:
client = Anthropic()

res = client.completions.create(
model="claude-v1",
model="claude-2",
prompt=f"{anthropic.HUMAN_PROMPT} how does a court case get to the Supreme Court? {anthropic.AI_PROMPT}",
max_tokens_to_sample=1000,
)
Expand Down
4 changes: 2 additions & 2 deletions examples/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def sync_stream() -> None:
stream = client.completions.create(
prompt=f"{HUMAN_PROMPT} {question}{AI_PROMPT}",
model="claude-v1",
model="claude-2",
stream=True,
max_tokens_to_sample=300,
)
Expand All @@ -29,7 +29,7 @@ def sync_stream() -> None:
async def async_stream() -> None:
stream = await async_client.completions.create(
prompt=f"{HUMAN_PROMPT} {question}{AI_PROMPT}",
model="claude-v1",
model="claude-2",
stream=True,
max_tokens_to_sample=300,
)
Expand Down

0 comments on commit 928ff37

Please sign in to comment.