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

server : (UI) fix missing async generator on safari #10857

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

ngxson
Copy link
Collaborator

@ngxson ngxson commented Dec 16, 2024

Fix #10841 and #10842

Caused by missing ReadableStream async iterator support on safari: https://caniuse.com/mdn-api_readablestream_--asynciterator

It's now working thanks to the ponyfill

image

Copy link
Member

@ggerganov ggerganov left a 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.

@@ -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',
Copy link
Member

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.

Copy link
Collaborator Author

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!

@ngxson ngxson merged commit 227d7c5 into ggml-org:master Dec 17, 2024
6 checks passed
@ggerganov
Copy link
Member

Btw, the "Copy" button on code blocks no longer seems to work. It throws this error in the console:

image

@ngxson
Copy link
Collaborator Author

ngxson commented Dec 20, 2024

There are some limitations to the navigator.clipboard API: https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined

The solution is to fallback to document.execCommand if it's not available, I'll make a PR for this

arthw pushed a commit to arthw/llama.cpp that referenced this pull request Dec 20, 2024
* server : (UI) fix missing async generator on safari

* fix
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
* server : (UI) fix missing async generator on safari

* fix
mglambda pushed a commit to mglambda/llama.cpp that referenced this pull request Mar 8, 2025
* server : (UI) fix missing async generator on safari

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misc. bug: Server Demo on Mac, safari return error
2 participants