Skip to content

Python: Bug: Model o1 (o3-mini) is enabled only for api versions 2024-12-01-preview and later #12268

Closed
@tamer-abdulghani

Description

@tamer-abdulghani

Describe the bug
When making an await kernel.invoke(function=function, arguments=variables) call against the o1 & o3-mini models using the Azure OpenAI service, the following error is returned:

Model {modelName} is enabled only for api versions 2024-12-01-preview and later

We have other gpt models deployed in the AOAI service, all others are working well without any issue.

To Reproduce
Steps to reproduce the behavior:

  1. Create a kernel chat completion service targeting o1 as the deployment model
  2. Create an agent with instructions, temperature, and structured output
  3. Call kernel.invoke()

Expected behavior
Response should be received without throwing this error.

Screenshots
N/A

Platform

  • Language: Python
  • Source: semantic-kernel==1.31.0
  • AI model: o1:2024-12-17 & o3-mini:2025-01-31
  • IDE: VS Code
  • OS: Windows

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions