Current version: async-openai = "0.31.0-alpha.6"
I am trying out function calling with the responses API and the library throws this error:
Caused by:
failed to deserialize api response: error:missing field `name` content:{"type":"response.function_call_arguments.done","sequence_number":540,"item_id":"fc_0406f266c8104f0a0069149fe6cdd0819b8d61947a29216e55","output_index":1,"arguments":"{\"language\":\"English\"}"}
This looks very similar to the issue in the Python library. According to fix PR, The raw event from the API doesn't include the name field - it must be taken from the accumulated snapshot. That's a bit odd as this conflicts with OpenAI event spec.
I guess we should make name optional until OpenAI fixes this on their end?