Hi all!
Is anyone else having issues with incorrectly formatted JSON as an output from function calling?
I’m calling this function which should return an array of objects. But somehow it returns an invalid JSON response. Note: I do get a response and the API call succeeds but the completion itself (function arguments) are incorrectly formatted.
[{"name":"email_formatting","description":"Extract information and format emails accordingly","parameters": {"type":"object","properties": {"Fundraising": {"type":"array","items": {"type":"object","properties": {"Stage": {"type":"string","enum": ["Series A","Series B","Series C","Series D","Series E","Series F","Pre-Seed","Seed"]},"Amount": {"type":"integer"},"Date": {"type":"string"},"Pre-money": {"type":"integer"},"Post-money": {"type":"integer"}}},"description":"Information about Fundraising and funding rounds."}}}}]
This is my response:
{
"Fundraising": [
{
"Stage": "Series B",
"Amount": 2500000,
"Date": "1686055002.675",
"Pre-money":
it misses a value for Pre-money, Post-money and some closing brackets.
Is anyone else experiencing stuff like this?