MagnivOrg / prompt-layer-library

🍰 PromptLayer - Maintain a log of your prompts and OpenAI API requests. Track, debug, and replay old completions.
https://www.promptlayer.com
Apache License 2.0
475 stars 42 forks source link

160 - Fix duplicate response with anthropic streaming bug #161

Closed abubakarsohail closed 2 days ago

abubakarsohail commented 2 days ago

This pull request fixes a bug that was causing duplicate responses in the anthropic streaming feature. The issue was resolved by updating the ms-python.black-formatter extension to version 2023.6.0. Additionally, a code block was modified to prevent the duplication of messages in the response.