Skip to content

Commit

Permalink
chore(internal): cleanup some redundant code (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Oct 14, 2023
1 parent 123b5c1 commit cb0bd8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/anthropic/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ def __init__(
- `auth_token` from `ANTHROPIC_AUTH_TOKEN`
"""
if api_key is None:
api_key = os.environ.get("ANTHROPIC_API_KEY") or None
api_key = os.environ.get("ANTHROPIC_API_KEY")
self.api_key = api_key

if auth_token is None:
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN") or None
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN")
self.auth_token = auth_token

if base_url is None:
Expand Down Expand Up @@ -346,11 +346,11 @@ def __init__(
- `auth_token` from `ANTHROPIC_AUTH_TOKEN`
"""
if api_key is None:
api_key = os.environ.get("ANTHROPIC_API_KEY") or None
api_key = os.environ.get("ANTHROPIC_API_KEY")
self.api_key = api_key

if auth_token is None:
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN") or None
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN")
self.auth_token = auth_token

if base_url is None:
Expand Down

0 comments on commit cb0bd8c

Please sign in to comment.