Skip to content

Commit

Permalink
fix client error type
Browse files Browse the repository at this point in the history
  • Loading branch information
orangetin committed Mar 9, 2024
1 parent 8ceaf3d commit 6007591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/together/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from together import resources
from together.constants import BASE_URL, MAX_CONNECTION_RETRIES, TIMEOUT_SECS
from together.error import TogetherException
from together.error import AuthenticationError
from together.types import TogetherClient


Expand Down Expand Up @@ -40,7 +40,7 @@ def __init__(
api_key = os.environ.get("TOGETHER_API_KEY")

if api_key is None:
raise TogetherException(
raise AuthenticationError(
"The api_key client option must be set either by passing api_key to the client or by setting the "
"TOGETHER_API_KEY environment variable"
)
Expand Down Expand Up @@ -102,7 +102,7 @@ def __init__(
api_key = os.environ.get("TOGETHER_API_KEY")

if api_key is None:
raise TogetherException(
raise AuthenticationError(
"The api_key client option must be set either by passing api_key to the client or by setting the "
"TOGETHER_API_KEY environment variable"
)
Expand Down

0 comments on commit 6007591

Please sign in to comment.