How to 'openai migrate' manually for this code?

Im new to the api and just trying to get GPT-4 to make a quick back-end for use with a local desktop app (the front-end works fine). I’m getting the completions needs to be updated for 1.0.0 error. I was wondering if there was a quick way to manually update this code instead of using ‘openai migrate’ ?

import openai

openai.api_key = ‘API_KEY’

def get_gpt4_response(prompt, model=“gpt-4”):
response = openai.ChatCompletion.create(
{“role”: “user”, “content”: prompt}
return response.choices[0].message[“content”].strip()
completions help