chatgpt-shell icon indicating copy to clipboard operation
chatgpt-shell copied to clipboard

Support Assistants API

Open karmajunkie opened this issue 1 year ago • 7 comments

I realize this was announced today so this is kind of an early ask, but I'd love to see the Assistants api supported in chatgpt-shell. Its part of the new offerings from OpenAI, documented here: https://platform.openai.com/docs/api-reference/assistants

Really just wanted to get the conversation around this started.

karmajunkie avatar Nov 07 '23 03:11 karmajunkie

Thanks for filing the request. Not had much of a chance to catch up with all that's been released. I did, however, add a smaller feature.

https://github.com/xenodium/chatgpt-shell/assets/8107219/74fff982-7938-4b70-9c99-6b42df861132

Really just wanted to get the conversation around this started.

Do you have examples of Emacs integrations?

xenodium avatar Nov 12 '23 03:11 xenodium

Do you have examples of Emacs integrations? No, I haven't seen any yet…

I think probably my goal would be to have a variable with a collection of assistants identified, then be able to switch to using one with chatgpt-shell-swap-system-prompt or something similar.

My elisp is terrible but maybe I should just take a stab at letting chatgpt ~implement~ coach me through implementing a PR... :)

karmajunkie avatar Nov 13 '23 20:11 karmajunkie

Hi, this does not work on my machine, I'm getting the following error:

/usr/bin/curl: Argument list too long

Looks like when you encode the image, the length of the curl command seems to be too long to process, maybe we can encode the data in a file or something?

ziova avatar Nov 23 '23 11:11 ziova

maybe we can encode the data in a file or something?

Possibly. Take a look at chatgpt-shell--make-curl-request-command-list.

xenodium avatar Nov 23 '23 12:11 xenodium

thanks, im not too saavy with my emacs-fu so im not sure how to modify it, sorry. could you please help me out

ziova avatar Nov 23 '23 12:11 ziova

maybe we can encode the data in a file or something?

@ziova This is now the case. So hopefully you don't hit the /usr/bin/curl: Argument list too long anymore. Btw, the command is now M-x chatgpt-shell-describe-image.

xenodium avatar Oct 04 '24 12:10 xenodium

@karmajunkie it's been a while now. Reckon assistants are still worth looking into? Unfortunately, I haven't followed where that went.

xenodium avatar Oct 04 '24 12:10 xenodium