diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 63c29e0..c91e213 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ### With Rye -We use [Rye](https://rye-up.com/) to manage dependencies so we highly recommend [installing it](https://rye-up.com/guide/installation/) as it will automatically provision a Python environment with the expected Python version. +We use [Rye](https://rye.astral.sh/) to manage dependencies so we highly recommend [installing it](https://rye.astral.sh/guide/installation/) as it will automatically provision a Python environment with the expected Python version. After installing Rye, you'll just have to run this command: diff --git a/README.md b/README.md index 09ef07d..b8a2f3b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ chat = client.chat.chat( "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) print(chat.id) ``` @@ -72,7 +72,7 @@ async def main() -> None: "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) print(chat.id) @@ -148,7 +148,7 @@ try: "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) except writerai.APIConnectionError as e: print("The server could not be reached") @@ -199,7 +199,7 @@ client.with_options(max_retries=5).chat.chat( "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) ``` @@ -230,7 +230,7 @@ client.with_options(timeout=5.0).chat.chat( "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) ``` @@ -275,7 +275,7 @@ response = client.chat.with_raw_response.chat( "content": "Hello!", "role": "user", }], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) print(response.headers.get('X-My-Header')) @@ -301,7 +301,7 @@ with client.chat.with_streaming_response.chat( "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ) as response: print(response.headers.get("X-My-Header")) diff --git a/scripts/bootstrap b/scripts/bootstrap index 29df07e..8c5c60e 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -16,4 +16,4 @@ echo "==> Installing Python dependencies…" # experimental uv support makes installations significantly faster rye config --set-bool behavior.use-uv=true -rye sync +rye sync --all-features diff --git a/tests/test_client.py b/tests/test_client.py index 4048cfe..868ffce 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -728,7 +728,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ), ), cast_to=httpx.Response, @@ -754,7 +754,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ), ), cast_to=httpx.Response, @@ -1459,7 +1459,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ), ), cast_to=httpx.Response, @@ -1485,7 +1485,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) "role": "user", } ], - model="palmyra-x-chat-v2-32k", + model="palmyra-x-v2", ), ), cast_to=httpx.Response,