#functions arguments value is in string. How to select those arguments?
6 messages · Page 1 of 1 (latest)
You might need to give people a bit more to go on than that/
I see the same problem. I don't know if this is a bug or feature, but I work around it with the following code.
arguments = function_call.get("arguments")
if arguments and isinstance(arguments, str):
function_call.arguments = json.loads(arguments)
Are you referring to the struct you get back when passing a response message back to your client?
thanks will try that.
I am referring to the openai functions response that contains the arguments generated by the model.