openai-function-calling icon indicating copy to clipboard operation
openai-function-calling copied to clipboard

Primitive `list` argument throws error

Open jakecyr opened this issue 2 years ago • 0 comments

Describe the bug When inferring from a function that has an argument of type list[str], I'm getting an error:

ValueError: Expected 'array_item_type' value since type is set to 'array'.

It does seem to work with the typing.List instead.

jakecyr avatar Mar 20 '24 16:03 jakecyr