dtinth / mockapis

Mock API endpoints to make end-to-end testing more convenient
https://mockapis.onrender.com/
28 stars 10 forks source link

Implement streaming support for OpenAI mock API #4

Open dtinth opened 1 week ago

dtinth commented 1 week ago

Issue Description

The current OpenAI mock API does not support streaming responses for chat completions. Streaming is an essential feature for many real-time applications, and adding this functionality will make the mock API more useful for developers who want to simulate real-world scenarios more accurately.

Tasks

  1. Implement a streaming endpoint for chat completions in the OpenAI mock API.
  2. Update existing tests and add new tests to cover the streaming functionality.

Resources

Acceptance Criteria

moudgalya1223 commented 1 week ago

Can we start working

dtinth commented 1 week ago

@moudgalya1223 Thanks, assigned to you!

moudgalya1223 commented 1 week ago

hello @dtinth can you help me out with requiremnt with any docs

dtinth commented 1 week ago

@moudgalya1223 sorry, i am unable to provide a guide as i don't have enough time ;-;. maybe you can ask in ElysiaJS Discord server or your local dev community for guidance on how to implement streaming. also check out the resources linked from the issue description.

let me know if you still would like to work on this issue.