Skip to content

Commit

Permalink
fix: manual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Feb 4, 2025
1 parent 0760485 commit 3430096
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Test
run: poetry run pytest .
env:
ELEVEN_API_KEY: ${{ secrets.TEST_API_KEY }}
ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }}

publish:
needs: [compile, test]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:

- name: Test
env:
ELEVEN_API_KEY: ${{ secrets.TEST_API_KEY }}
ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }}
run: |
poetry run pytest .
poetry run pytest .
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ from elevenlabs.client import ElevenLabs
from elevenlabs import play

client = ElevenLabs(
api_key="YOUR_API_KEY", # Defaults to ELEVEN_API_KEY or ELEVENLABS_API_KEY
api_key="YOUR_API_KEY", # Defaults ELEVENLABS_API_KEY
)

voice = client.clone(
Expand Down Expand Up @@ -141,7 +141,7 @@ from elevenlabs.client import ElevenLabs
from elevenlabs import stream

client = ElevenLabs(
api_key="YOUR_API_KEY", # Defaults to ELEVEN_API_KEY or ELEVENLABS_API_KEY
api_key="YOUR_API_KEY", # Defaults to ELEVENLABS_API_KEY
)

def text_stream():
Expand All @@ -168,7 +168,7 @@ import asyncio
from elevenlabs.client import AsyncElevenLabs

eleven = AsyncElevenLabs(
api_key="MY_API_KEY" # Defaults to ELEVEN_API_KEY or ELEVENLABS_API_KEY
api_key="MY_API_KEY" # Defaults to ELEVENLABS_API_KEY
)

async def print_models() -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/elevenlabs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(
*,
base_url: typing.Optional[str] = None,
environment: ElevenLabsEnvironment = ElevenLabsEnvironment.PRODUCTION,
api_key: typing.Optional[str] = os.getenv("ELEVENLABS_API_KEY") or os.getenv("ELEVEN_API_KEY"),
api_key: typing.Optional[str] = os.getenv("ELEVENLABS_API_KEY"),
timeout: typing.Optional[float] = 60,
httpx_client: typing.Optional[httpx.Client] = None
):
Expand Down

0 comments on commit 3430096

Please sign in to comment.