No response from get_completion

I’m trying to follow along with the course. I installed openai and tiktoken. I imported them, along with os. I even figured out how to get an OpenAI key. But when I run the get_completion function:

def get_completion(prompt, model=“gpt-3.5-turbo)”):
messages = [{“role”: “user”, “content”: prompt}]
response = openai.ChatCompletion.create(
model=model,
messages=messages,
temperature=0,
)
return response.choices[0].message[“content”]

And then

response = get_completion(“What is the capital of France?”)

It thinks for a while. No errors. And then

print(response)

I get no output.

Have I made a syntax error? Is the course not designed to be followable in this way?

I made a syntax error, placing an extra close parenthesis after “gtp-3.5-turbo”.

Meanwhile, I find I have exceeded my rate limit. I will need to think about how much I’m willing to spend.

So, let’s close this problem.