Skip to content

Commit 279ce29

Browse files
committed
fix: fix error message (TOKEN > KEY)
1 parent 5e72b39 commit 279ce29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pyannoteai/sdk/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Client:
9090
----------
9191
token : str, optional
9292
pyannoteAI API key created from https://dashboard.pyannote.ai.
93-
Defaults to using `PYANNOTEAI_API_TOKEN` environment variable.
93+
Defaults to using `PYANNOTEAI_API_KEY` environment variable.
9494
9595
Usage
9696
-----
@@ -123,7 +123,7 @@ def _raise_for_status(self, response: Response):
123123
raise HTTPError(
124124
"""
125125
Failed to authenticate to pyannoteAI API. Please create an API key on https://dashboard.pyannote.ai/ and
126-
provide it either via `PYANNOTEAI_API_TOKEN` environment variable or with `token` parameter."""
126+
provide it either via `PYANNOTEAI_API_KEY` environment variable or with `token` parameter."""
127127
)
128128

129129
# TODO: add support for other status code when
@@ -207,7 +207,7 @@ def api_key(self, api_key: str) -> None:
207207
raise ValueError(
208208
"""
209209
Failed to authenticate to pyannoteAI web API. Please create an API key on https://dashboard.pyannote.ai/ and
210-
provide it either via `PYANNOTEAI_API_TOKEN` environment variable or with `token` parameter."""
210+
provide it either via `PYANNOTEAI_API_KEY` environment variable or with `token` parameter."""
211211
)
212212

213213
# store the API key and prepare the headers

0 commit comments

Comments
 (0)