Comments (4)
Also ran into this issue recently.
from slickgpt.
Okay, so when you prompt something, the client calls an Vercel Edge function (middleware) and that will establish the connection to the OpenAI API and "proxy" the stream to the client. If that streams fails for some reason, SlickGPT deletes the latest (incomplete) completion from the history, so that you can re-submit your last prompt easily.
So basically, there are 3 points of failure:
- OpenAI API is down or cuts the connection to Vercel (most likely, happens all the time, especially whenever they update stuff)
- Vercel has problems/downtime and disconnects the client (rather unlikely but not impossible)
- Your internet connection broke
I don't think we can do much on SlickGPT/client side except maybe output some better error messages.
from slickgpt.
It may not delete the unfinished API response but stuck somewhere. From my usage experience, the disappeared response will show eventually, but may not in the identical session, maybe in another slickgpt chat session. Once the popped up message is so sudden that the entire session context jumped to the other session while I was typing. (hopes it is not some session-switching shortcuts)
from slickgpt.
We are about to release a new major release that will change things:
- We'll be offering fixed-price access to the OpenAI API using our Azure infrastructure. It's a lot faster than direct access (probably because Microsoft has special deals with OpenAI?). I haven't seen the problem there yet.
- The Svelte endpoint layer will be completely removed. So even if you don't use that, there's one less point of failure because the client will be talking directly to OpenAI. Maybe that will help as well.
Stay tuned, it's coming soon.
from slickgpt.
Related Issues (20)
- Previous chat history lost (hidden) due to domain jump to slickgpt.app HOT 1
- Potential issue: deleted models cause frontend stuck. HOT 1
- Support Azure openai api keys HOT 1
- Multiline formatting of code block is lost for several (non-supported?) languages HOT 2
- Automatically generated titles are often in quotes
- Integrate APIpie.ai HOT 1
- Prevent empty or whitespace-only submissions with `Enter` key in textarea
- Can't move up with arrow keys in textarea
- Only autoscroll when completion is complete
- Add Svelte syntax highlighting
- Chat title is being auto-updated again after a refresh
- Unexpected Newline Handling and Trailing Line Breaks in Markdown Rendering
- Tokenizer running on UI thread blocks the UI
- Setting dialogue manually with `enter` key triggers Automatic Suggestion and overwrites the manual title.
- Wrong max token limits for GPT4-Turbo-1106 HOT 3
- Tutorial on dialogue sync or import/export HOT 1
- Automagically set titles at appropriate time to suit mobile navigation and browser behaviors. HOT 2
- Option to set API endpoint HOT 1
- Replies occationally being "swallowed" due to abnormal API stream completion. HOT 3
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 slickgpt.