diff --git a/README.md b/README.md index 6e9c8d07..64512f79 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ client = Writer( chat_completion = client.chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -66,7 +66,7 @@ async def main() -> None: chat_completion = await client.chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -92,7 +92,7 @@ client = Writer() stream = client.chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -113,7 +113,7 @@ client = AsyncWriter() stream = await client.chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -250,7 +250,7 @@ try: client.chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -301,7 +301,7 @@ client = Writer( client.with_options(max_retries=5).chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -332,7 +332,7 @@ client = Writer( client.with_options(timeout=5.0).chat.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -380,7 +380,7 @@ from writerai import Writer client = Writer() response = client.chat.with_raw_response.chat( messages=[{ - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", }], model="palmyra-x-004", @@ -405,7 +405,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi with client.chat.with_streaming_response.chat( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], diff --git a/tests/test_client.py b/tests/test_client.py index 7d9acb8e..5a2f6c16 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -735,7 +735,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No dict( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -764,7 +764,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non dict( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -1555,7 +1555,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) dict( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ], @@ -1584,7 +1584,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) dict( messages=[ { - "content": "Write a poem about Python", + "content": "Write a haiku about programming", "role": "user", } ],