Comments (4)
Thank you. I got the expected behavior.
If possible, it would be nice if onProgress was also written in the README.
from chatgpt-api.
@gtk2k we're already using an event-stream parser for responding to the request. Is there a specific change that you're suggesting?
from chatgpt-api.
I just performed a few tests with and without the Accept: 'text/event-stream'
header. I wasn't able to notice any significant difference between the two.
One thing to keep in mind is that it can feel like the responses take longer when you're not seeing the partial response as ChatGPT is "typing". If you compare the time it takes to fully resolve an api.sendMessage
vs your browser devtools, it will be very similar.
To view the stream of partial responses with chatgpt
, you can use the onProgress
or onConversationResponse
parameters to api.sendMessage
.
from chatgpt-api.
Just added a note to the readme π
from chatgpt-api.
Related Issues (20)
- Bug of not remembering old message HOT 2
- has no exported member 'ChatGPTUnofficialProxyAPI'
- Model GPT-4 does not exist or you do not have access to it HOT 5
- Add plugins, images, code interpretation etc.. feacture for UnofficialProxy
- CJS Incompatibity Error HOT 1
- Streaming a response from onProgress return duplicates
- ChatGPT error 500: {"detail":"Hmm...something seems to have gone wrong."} HOT 3
- ChatGPT 4 vision - send image? HOT 4
- Upload image HOT 1
- Custom messageId saved into parentMessageId HOT 2
- Instead of sending a new Message, appended to last message. HOT 1
- Error: It is recommended to upgrade to the latest PandoraNext: https://github.com/pandora-next/deploy HOT 7
- After call AbortController. abort(), it did not stop immediately and only returned after timeout HOT 1
- ChatGPTUnofficialProxyAPI Not Working HOT 6
- support pip
- It is not work when use gpt-4 modelοΌha ha HOT 3
- any plan to support GPT-V?
- assistant
- Bug HOT 2
- [ChatGPTUnofficialProxyAPI] ChatGPT Web has switched from SSE to WebSockets.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-api.