On the function calling, what about if I have no parameter to call?

The documentation states

To describe a function that accepts no parameters, provide the value {"type": "object", "properties": {}}

But they left out an important piece:

  "name": "getTranscript",
  "description": "Simply retrieves the user's current transcript when explicitly requested",
  "parameters": {
    "type": "object",
    "properties": {},
    "required": []

You need to add "required": [] or else it throws an error

1 Like