Skip to content

Commit

Permalink
docs: move comments in example snippets (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 11, 2024
1 parent 23637de commit f887930
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import os
from anthropic import Anthropic

client = Anthropic(
# This is the default and can be omitted
api_key=os.environ.get("ANTHROPIC_API_KEY"),
api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted
)

message = client.messages.create(
Expand Down Expand Up @@ -58,8 +57,7 @@ import asyncio
from anthropic import AsyncAnthropic

client = AsyncAnthropic(
# This is the default and can be omitted
api_key=os.environ.get("ANTHROPIC_API_KEY"),
api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted
)


Expand Down

0 comments on commit f887930

Please sign in to comment.