OpenAI function calling support #269
Replies: 4 comments 4 replies
-
Amazing @slundberg ! Thanks for working on that; I can't wait to use it. Am I missing something? I've copy-pasted the example from the notebook and got this:
|
Beta Was this translation helpful? Give feedback.
-
Hi @slundberg , I'm on Guidance 0.0.64 + OpenAI LLM and seeing the same error as abhinavdayal when running the code from here in a single Python file (up to [4]). I see someone else has reported getting the same error: #272. Is there anything we can do to get past this error? Thanks for your help and amazing work! |
Beta Was this translation helpful? Give feedback.
-
@slundberg Yes, I updated to 0.0.64 before running your example. Here's the code I copy/pasted from this thread:
|
Beta Was this translation helpful? Give feedback.
-
Hi @slundberg,
|
Beta Was this translation helpful? Give feedback.
-
As a first step towards better tool-use support in Guidance version 0.0.64 includes function calling support. Initially it is tested just for OpenAI models, but is designed to work with all open models going forward as well. Here is an example in action:
For more details see the following work-in-progress notebook: (feedback is welcome!)
https://github.com/microsoft/guidance/blob/main/notebooks/art_of_prompt_design/tool_use.ipynb
Beta Was this translation helpful? Give feedback.
All reactions