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

Add configuration for openai response type: stream or buffer #14

Closed
nvms opened this issue Aug 16, 2023 · 0 comments
Closed

Add configuration for openai response type: stream or buffer #14

nvms opened this issue Aug 16, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nvms
Copy link
Owner

nvms commented Aug 16, 2023

Right now we define an onProgress handler for all OpenAI requests. transitive-bullshit/chatgpt-api sees this handler and then configures fetch to receive the response in streamed chunks.

Introduce a configuration option to allow for a buffered response instead.

Relevant:

https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/chatgpt-api.ts#L207

@nvms nvms self-assigned this Aug 16, 2023
@nvms nvms added enhancement New feature or request good first issue Good for newcomers labels Aug 16, 2023
@nvms nvms closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant