This is odd system or assistant not both


If I use both I get a json error. Use one or the other they work. :woman_shrugging: Not sure what I am doing wrong or if this is a feature :sunglasses:

1 Like

curl https://api.openai.com/v1/chat/completions
-H “Content-Type: application/json”
-H “Authorization: Bearer $OPENAI_API_KEY”
-d ‘{
“model”: “gpt-3.5-turbo”,
“messages”: [{“role”: “system”, “content”: “You are a helpful assistant.”}, {“role”: “user”, “content”: “Hello!”}]
}’

as it’s cURL, maybe it’s your extra line break(s)?

3 Likes


You were right! Cheers :tada:

1 Like

That’s better thank you :pray:

1 Like

Happy to help. Hope you stick around and help someone else someday to pass it on! :wink:

Have fun coding!

2 Likes

Thankyou. Yes I am excited about learning more and trying out GPT-4. I think I am going to be around a long time. God Willing