Facing the issue posting the message request to chatGPT

Hi,
I’m Facing the Issue of posting the Message request to chatGPT.

JObject.FromObject(
New With {
key.model = “gpt-3.5-turbo”,
key.messages =[{ “role” : “system” , “content” : “You are a helpful assistant.”}]
}).ToString

The above Json Code not working properly.

Hi,
Please try this Json Code

JObject.FromObject(New With {
key.model = “gpt-3.5-turbo”,
key.messages = New Object() {
New With {
key.role = “system”,
key.content = “You are a helpful assistant.”
}
}
}).ToString()