-
Notifications
You must be signed in to change notification settings - Fork 7
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
calling a pre-defined openAI assistant #152
Comments
Hi @ilikerobots , how is your assistant built? You mean an Assistant created via the OpenAI API? Or a Langchain agent? If a Langchain agent, you can override methods like I believe Langchain can also use existing OpenAI API assistants. But we would have to check the docs on how to build a chain that uses the existing assistant. See: https://python.langchain.com/v0.1/docs/modules/agents/agent_types/openai_assistants/#using-existing-assistant Then you can get the existing assistant and perhaps replace agent declaration here:
You can do that by inheriting from |
@fjsj , appreciate the comments. I did mean a pre-defined OpenAI assistant, not a langchain agent. I'll look into this, but langchain is all new to me so it's taking a while. Feel free to close. |
(btw, great job to those involved in this project: i'm deploying a help desk response assistant today using this) |
Awesome @ilikerobots, thanks! At least some documentation about this is necessary, if we don't change the library. But we may be able to do some matching via assistant ID and ensure we're using the pre-defined assistant from OpenAI. |
If I've already built an assistant in OpenAI, is it possible to use it for messages with django-ai-assistant?
The text was updated successfully, but these errors were encountered: