From 5c44c82ecf1c9d4c4e943a2a30ecbfdfe1358475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BREDIN?= Date: Sat, 20 Sep 2025 22:19:53 +0200 Subject: [PATCH] fix: fix SDK token error message (#1922) --- pyproject.toml | 2 +- src/pyannote/audio/pipelines/pyannoteai/local.py | 2 +- src/pyannote/audio/pipelines/pyannoteai/sdk.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b3227cb2..afb1fbb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dependencies = [ "torchmetrics>=1.6.1", "soundfile>=0.13.1", "matplotlib>=3.10.0", - "pyannoteai-sdk>=0.2.0", + "pyannoteai-sdk>=0.2.1", ] [project.scripts] diff --git a/src/pyannote/audio/pipelines/pyannoteai/local.py b/src/pyannote/audio/pipelines/pyannoteai/local.py index 08c73676..75e6be14 100644 --- a/src/pyannote/audio/pipelines/pyannoteai/local.py +++ b/src/pyannote/audio/pipelines/pyannoteai/local.py @@ -34,7 +34,7 @@ class Local(Pipeline): ---------- 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 ----- diff --git a/src/pyannote/audio/pipelines/pyannoteai/sdk.py b/src/pyannote/audio/pipelines/pyannoteai/sdk.py index ac30448a..979b4d3e 100644 --- a/src/pyannote/audio/pipelines/pyannoteai/sdk.py +++ b/src/pyannote/audio/pipelines/pyannoteai/sdk.py @@ -40,7 +40,7 @@ class SDK(Pipeline): Defaults to "precision-2". 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 -----