Below is the code that I tried. The code worked with gpt-3.5-turbo, but not o1-preview-2024-09-12 or o1-preview. By not working I mean that the code finished and printed an empty response content…
Any tips?
from openai import OpenAI
client = OpenAI(api_key = “”
)
response = client.chat.completions.create(
model=“o1-preview-2024-09-12”,
messages=[
{“role”: “user”, “content”: “what does laogong mean in thai?”}
],
max_completion_tokens=300
)
print(response.choices[0].message.content)