-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Migrate to new model + proxy from server #5
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Grsmto
commented
Apr 17, 2023
•
edited
Loading
edited
- Migrate to new model
- Proxy API calls to server to avoid exposing token client-side
- Cleanup model responses
# Conflicts: # src/routes/+page.svelte
Grsmto
force-pushed
the
adrien-proxy-server
branch
from
April 18, 2023 08:42
b5260af
to
dd24928
Compare
julien-c
reviewed
Apr 18, 2023
julien-c
reviewed
Apr 18, 2023
julien-c
reviewed
Apr 18, 2023
julien-c
reviewed
Apr 18, 2023
julien-c
reviewed
Apr 18, 2023
julien-c
reviewed
Apr 18, 2023
Co-authored-by: Julien Chaumond <julien@huggingface.co>
I published |
coyotte508
reviewed
Apr 18, 2023
coyotte508
reviewed
Apr 18, 2023
coyotte508
reviewed
Apr 18, 2023
Grsmto
force-pushed
the
adrien-proxy-server
branch
from
April 18, 2023 15:29
4ab6e6f
to
3c5c332
Compare
coyotte508
reviewed
Apr 18, 2023
coyotte508
approved these changes
Apr 18, 2023
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.
LGTM (after removing patch-package), let's iterate 🚀
mishig25
pushed a commit
that referenced
this pull request
Oct 23, 2023
* Order desc you.com results by text length * You.com already provides texts from webpages
nsarrazin
pushed a commit
that referenced
this pull request
Oct 26, 2023
* add you.com integration * [Feat] Add types (#1) * feat: add types * feat: specify search provider * [Feat] add return values (#3) * feat: add types * feat: specify search provider * add values for ui * add idea to gitignore * lint and downgrade * Revert "lint and downgrade" This reverts commit fbfe012. * Updates to you.com integration (#4) * `npm run format` * enable search when `YDC_API_KEY` is available * typing nit * enum WebSearchProvider * eslint-disable-next-line no-shadow * downgrade * You.com already provides text snippets (#5) * Order desc you.com results by text length * You.com already provides texts from webpages * add to env * Update .env Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Update src/lib/server/websearch/searchWeb.ts --------- Co-authored-by: David Li <david.li3100@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>
ice91
pushed a commit
to ice91/chat-ui
that referenced
this pull request
Oct 30, 2024
* use fork of hf.js to support fully custom endpoints for testing purpose * proxy textGenerationStream call to the backend to hide token from client * migrate to patch-package instead of pnpm * fix issue after merge conflict * use env var instead of hardcoded value for endpoint * fix messages not being split between assistant/user * fix stream response sometimes not split by token * remove PUBLIC_ from private env variables + rename ENDPOINT to MODEL_ENDPOINT * only set hf token as private, model can stay public * move HF_TOKEN to a dynamic env * fix env var import typo * remove @microsoft/fetch-event-source * update parameters to be identical to Python demo * small refactor to avoid typing issue * cleanup while loop Co-authored-by: Julien Chaumond <julien@huggingface.co> * make comment clearer on what is happening on stream chunks split * fix chunk spliting not being handled properly * cleanup model tokens sometimes containing "<|endoftext|>" text * refactor how we proxy from the server to simplify logic * use latest version of hf.js * use .env + .env.local instead of .env.example * rewrite logic to trim "<|endoftext|>" artifact properly * update to latest hf.js * expose env var to Docker during build time for deployment * remove patch-package --------- Co-authored-by: Julien Chaumond <julien@huggingface.co>
ice91
pushed a commit
to ice91/chat-ui
that referenced
this pull request
Oct 30, 2024
* add you.com integration * [Feat] Add types (huggingface#1) * feat: add types * feat: specify search provider * [Feat] add return values (huggingface#3) * feat: add types * feat: specify search provider * add values for ui * add idea to gitignore * lint and downgrade * Revert "lint and downgrade" This reverts commit fbfe012. * Updates to you.com integration (huggingface#4) * `npm run format` * enable search when `YDC_API_KEY` is available * typing nit * enum WebSearchProvider * eslint-disable-next-line no-shadow * downgrade * You.com already provides text snippets (huggingface#5) * Order desc you.com results by text length * You.com already provides texts from webpages * add to env * Update .env Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Update src/lib/server/websearch/searchWeb.ts --------- Co-authored-by: David Li <david.li3100@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.