allyourbot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
192 stars 75 forks source link

Allow creating (and deleting) your own Assistant & the ability to set the specific model that is being used #308

Open krschacht opened 3 weeks ago

krschacht commented 3 weeks ago

This way you can have custom instructions for brainstorming or coding and pick the right assistant.

For creating an assistant, we can add a button right at the bottom of the list of assistants. ChatGPT has an "explore GPTs" button but I think our button would just be "+ New" or something like that.

Clicking it takes you into settings/assistants/new and you get a basic form. The one thing to get right is turning the model text attribute into a drop-down.

Deleting an assistant is a bit trickier because conversations & messages are associated with an assistant. I think this means we need to "soft delete." I think that basically consists of:

After we do this, one important thing to check: when you view an old conversation which was associated with an assistant that now gets deleted, does it work? Notably, when you do this it attempts to highlight the assistant in the left side which is associated with this. That logic probably needs to be updated because it will be looking for a non-existent assistant. I think it could just default to highlighting the first assistant in the list instead. I'm not sure how tricky this might be.

While we're making this change, we should rename "instructions" to "Custom Instructions" within editing/new assistant form.

This idea came from: https://www.reddit.com/r/rails/comments/1cdxjb3/a_new_rails_hostedgpt_is_out_what_should_come_next/

krschacht commented 1 week ago

FYI @stephan-buckmaster is working on this one, just so no one else picks it up (github only lets me assign issues to other commenters)

stephan-buckmaster commented 1 day ago

Last commit does soft-deletions. Some user-tests fail, where all its dependents are to be destroyed, but they are not anymore.

Can you take a look at these changes, before I look into covering all by tests, @krschacht

krschacht commented 11 hours ago

Can you take a look at these changes, before I look into covering all by tests, @krschacht

Hi @stephan-buckmaster sorry for the delay on this! But yes, absolutely happy to review it. I’ll be sure to give it a close look tomorrow. I’m excited to have this in! I’ve been working on greatly expanding the capabilities of assistants through the addition of tools, so it’s going to be great to have this foundation in place for managing assistants.

stephan-buckmaster commented 10 hours ago

Thanks Keith, no worries about the delays. I want to make locally running models available, and they seem to require these changes (have started on that in a new branch)

On Fri, 17 May 2024 at 20:33, Keith Schacht @.***> wrote:

Can you take a look at these changes, before I look into covering all by tests, @krschacht https://github.com/krschacht

Hi @stephan-buckmaster https://github.com/stephan-buckmaster sorry for the delay on this! But yes, absolutely happy to review it. I’ll be sure to give it a close look tomorrow. I’m excited to have this in! I’ve been working on greatly expanding the capabilities of assistants through the addition of tools, so it’s going to be great to have this foundation in place for managing assistants.

— Reply to this email directly, view it on GitHub https://github.com/allyourbot/hostedgpt/issues/308#issuecomment-2118621663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACAV3XC4OQQLVDOUGM6C4TZC3DXDAVCNFSM6AAAAABG3REJGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGYZDCNRWGM . You are receiving this because you were mentioned.Message ID: @.***>

-- Stephan Wehner, Ph.D. The Buckmaster Institute, Inc. 2150 Adanac Street Vancouver BC V5L 2E7 Canada Cell (604) 767-7415 Fax (888) 808-4655

Sign up for our free email course http://buckmaster.ca/small_business_website_mistakes.html

http://www.buckmaster.ca http://answer4img.com http://loggingit.com http://clocklist.com http://stephansmap.org http://benchology.com http://www.trafficlife.com http://stephan.sugarmotor.org (Personal Blog) @stephanwehner (Personal Account) VA7WSK (Personal call sign)