I’m trying to use the structured output feature with the o1 model but receiving a 404 error. Here’s my code:
class CalendarEvent(BaseModel):
name: str
date: str
participants: list[str]
completion = client.beta.chat.completions.parse(
model="o1",
messages=[
{"role": "system", "content": "Extract the event information."},
{"role": "user", "content": "Alice and Bob are going to a science fair on Friday."},
],
response_format=CalendarEvent,
)
The error I’m getting is:
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `o1` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
Is the o1 model currently available for structured output? I am on tier 5 so this should not be a problem?
I am encountering the same issue. Is it possible that a conflict arises, since structured output requires the beta chat completion to parse, while o1 models are only available via non-beta chat completion?
Just to reiterate what has already been said by OpenAI, o1 access is being rolled out, a large number of API users have already gained access but the order is random, so please be pateint.