Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pyannoteai/sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Client:
----------
token : str, optional
pyannoteAI API key created from https://dashboard.pyannote.ai.
Defaults to using `PYANNOTEAI_API_TOKEN` environment variable.
Defaults to using `PYANNOTEAI_API_KEY` environment variable.

Usage
-----
Expand Down Expand Up @@ -123,7 +123,7 @@ def _raise_for_status(self, response: Response):
raise HTTPError(
"""
Failed to authenticate to pyannoteAI API. Please create an API key on https://dashboard.pyannote.ai/ and
provide it either via `PYANNOTEAI_API_TOKEN` environment variable or with `token` parameter."""
provide it either via `PYANNOTEAI_API_KEY` environment variable or with `token` parameter."""
)

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

# store the API key and prepare the headers
Expand Down