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

Support Assistants API Beta #15

Open
muehlt opened this issue Nov 22, 2023 · 2 comments
Open

Support Assistants API Beta #15

muehlt opened this issue Nov 22, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@muehlt
Copy link

muehlt commented Nov 22, 2023

I figured it would be best to create a separate issue for this (from #12 side discussion). Adding support to use a custom OpenAI Assistant instead of using the normal model endpoints might be less work than the complications, depending on the current setup (didn't have a detailed look yet :)). The Java API wrapper seems to already support Threads and Assistants or they are working on it.

@DevEmperor DevEmperor self-assigned this Nov 22, 2023
@DevEmperor DevEmperor added the enhancement New feature or request label Nov 22, 2023
@DevEmperor
Copy link
Owner

Hey again, thanks for the separate thread. I've already checked, and yes, the Java library has been supporting the assistants for a few days now. I'll get round to adding the feature in the next few days. Probably as an extra menu item, so that everything stays a bit more organised (also in the code ;) ).

@muehlt
Copy link
Author

muehlt commented Nov 22, 2023

Sounds good. However, I just read a few lines of the function calling docs and tools section of the Assistants API and at first glance it looks to work quite differently to the GPT implemented in ChatGPT that can call API endpoints directly. So in this generic use case of an assistant that should work out of the box without custom code in the watch app, it seems we might be stuck with Code Interpreter and Retrieval for now. We could circumvent this with a hacky custom function that makes the API call from the watch, though, but that would be more work. Maybe there is still a way to make the API call from OpenAI's side and I didn't find it. On the other hand, the API call from the watch might also bring advantages (calling local Home Assistant instance) (and a handful of severe security risks :)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants