How to create openai object from the json?

from openai.util import convert_to_openai_object but its not available in openai 1.3.3 version.
I need to create openai object and is there any functions in openai version 1.3.3
how to create ChatCompletion object?

Welcome @mail2raghunath298

These should help:

  1. Auth

  2. create chat completion

@sps i have a json object as input how can i create chat completion object out of it?
Can you sample code to create the object just like we had convert_to_openai_object in older version?

If you want to send a JSON object to chat completion endpoint, you’ll first have to stringify it and then pass the stringified JSON as part of content