-
Notifications
You must be signed in to change notification settings - Fork 76
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
OpenAI Functions support and demo example #97
Comments
@votkon sure! do you maybe have a langchain example or a use case? |
@votkon I think you can use OpenAI functions directly via |
Thanks for the prompt reply! I somehow missed this example. After giving it a try it looks like it doesn't communicate correctly with the frontend app. In the zero_shot_agent.py example, when I change the
to
it doesn't stream responses back to the chat, although it shows them in the Python output. Also, it doesn't look like initialize_agent supports the memory parameter: I am doing a simple web chat with conversation memory and the ability to call different tools and/or functions. Thanks! |
I see! It's likely due to this: lanarky/lanarky/callbacks/agents.py Line 24 in 6127973
I need to update this to handle all agent types. I think currently only zero shot agents are supported. |
Thanks! Have you had a chance to look into it? |
nope! i have been busy these past few weeks. I will try to find more time to work on this repo. |
Hi @votkon, Using this custom class
and using it as a callback in your StreamingResponse may be a quickfix for you
|
I will add native support for OpenAI functions as part of v0.9 roadmap. |
Hi,
I was wondering how we could plug the OpenAI Functions into Lanarky.
It takes the conversation chain as an input and Functions seem to be called by Agents
Do you think it's possible to add that and maybe some examples as well?
Thanks!
The text was updated successfully, but these errors were encountered: