Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix streaming support in client #105

Closed
wants to merge 1 commit into from

Conversation

yusefes
Copy link

@yusefes yusefes commented Nov 29, 2024

Fixes #103

Add support for streaming responses in the Anthropic provider.

  • Handle the stream parameter in the chat_completions_create method in aisuite/providers/anthropic_provider.py.
  • Use handle_streaming_response method to process streaming responses.
  • Add a test case for the stream parameter in tests/client/test_client.py.

For more details, open the Copilot Workspace session.

Fixes #103

Add support for streaming responses in the Anthropic provider.

* Handle the `stream` parameter in the `chat_completions_create` method in `aisuite/providers/anthropic_provider.py`.
* Use `handle_streaming_response` method to process streaming responses.
* Add a test case for the `stream` parameter in `tests/client/test_client.py`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/andrewyng/aisuite/issues/103?shareId=XXXX-XXXX-XXXX-XXXX).
@yusefes yusefes closed this by deleting the head repository Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming Is Not Supported
1 participant