Format of Function call when a specific function is required? #90
Unanswered
StefanBristol
asked this question in
Q&A
Replies: 1 comment
-
Hi @StefanBristol ! Any progress? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've got the function call working in the query, using the default function_call = "auto".
i.e. let query = ChatQuery(model: .gpt4, messages: xxxxxxxx, functions: xxxxxxx)
But I can't seem to work out from the code what the format is for....
let query = ChatQuery(model: .gpt4, messages: xxxxxx, functions: xxxxxxx, functionCall: ???)
For the example, it is a function called 'getWidget' and will have properties 'type' and 'name'.
Any help on how to use the OpenAI package in this case, would be most welcome.
Beta Was this translation helpful? Give feedback.
All reactions