-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
server : (UI) fix missing async generator on safari #10857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested Safari on MacOS and it works.
examples/server/webui/src/main.js
Outdated
@@ -33,7 +36,7 @@ const CONFIG_DEFAULT = { | |||
systemMessage: 'You are a helpful assistant.', | |||
showTokensPerSecond: false, | |||
// make sure these default values are in sync with `common.h` | |||
samplers: 'edkypmxt', | |||
samplers: 'dkypmxt', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be changed. With #10803, the penalties sampler has to be manually inserted, instead of always being present at the start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, I took the incorrect base branch. Fixed now, thanks!
There are some limitations to the The solution is to fallback to |
* server : (UI) fix missing async generator on safari * fix
* server : (UI) fix missing async generator on safari * fix
* server : (UI) fix missing async generator on safari * fix
Fix #10841 and #10842
Caused by missing
ReadableStream
async iterator support on safari: https://caniuse.com/mdn-api_readablestream_--asynciteratorIt's now working thanks to the ponyfill