#Can't run functions without parameters

1 messages · Page 1 of 1 (latest)

next dome
#

Hey guys, Im trying to implement a simple function in my GPT application with no parameters. Im failing, always getting error 400 and i have no idea why.

Basically my function is like this:

{
"name": "check_news",
"description": "Fetch current world news",
"parameters": {
"type": "object",
properties: {}
}
}

My request looks like this:

data: '{"model":"gpt-4","messages":[{"role":"system","content":"Give short answers,
if not asked otherwise - no need to spam the chat with essays. Current UTC time: 2023-10-01 01:06:35"},{"role":"user","content":"2023-10-01 01:06:35 cornholio21: GPT, post news"},{"role":"assistant","content":null,"function_call":{"name":"check_news","arguments":null}},{"role":"function","name":"check_news","content":"US government is hiding 12 UFOs!"}]}',

#

I have other way more complicated functions like getting messages from discord users, muting them etc... But it fails only on this function with no parameters