-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Add support for specifying llama model files. #402
Closed
Closed
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
Add new API (/config/data/processor/conversation/offline) to set custom Llama2 model. The original API no longer sets the offline model to be enabled, now it only sets it to be disabled.
Hey @Ellen7ions , thanks for raising the PR! It would be great if we could discuss some of the motivations and in this discussion #408 |
Note that this crawler only support edge browser now. This part of the code is borrowed from Auto-GPT.
1. Now api `/config/data/content_type/{content_type}` can process URL. 2. api `/search` gets url involved.
Closing this, as custom model support may require some more investigation and discussion over use cases. Discussed in #408. |
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.
Features
In this PR, we have removed the original Enable Offline button and replaced it with an input box for the user to specify a different Llama model file.
You can put your models in the folder~/user/.cache/gpt4all/
and input the model name in the box.You can put your llama model anywhere and input your model path in the box.
Changes
@api.post("/config/data/processor/conversation/offline", status_code=200)
@api.post("/config/data/processor/conversation/enable_offline_chat", status_code=200)