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

update the sdk to send streamed data in a standard form #113

Open abubakarsohail opened 4 months ago

abubakarsohail commented 4 months ago

Currently, whenever we log streamed requests, we are defining a new structure and send it to the server for logging purposes. It should send the data in standard completion or chat model whichever is applicable.