Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

ENG-2299: Deprecate OpenAI o1 preview and OpenAI o1 mini#97

Merged
dragos199993 merged 2 commits into
mainfrom
ENG-2299_deprecate-openai-o1-preview-and-openai-o1-mini
Sep 9, 2025
Merged

ENG-2299: Deprecate OpenAI o1 preview and OpenAI o1 mini#97
dragos199993 merged 2 commits into
mainfrom
ENG-2299_deprecate-openai-o1-preview-and-openai-o1-mini

Conversation

@dragos199993

Copy link
Copy Markdown
Member

No description provided.

- Deleted O1 model entries from the PROVIDERS in settings.py.
- Removed is_o1_model function and related logic from client.py and providers.py.
- Deleted tests and cassettes related to O1 models to clean up the codebase.
…d client

- Deleted the o1_system_prompt_translate function from prompts.py.
- Removed references to the O1 model translation in client.py to streamline the codebase.
Comment thread notdiamond/llms/client.py
"ChatOpenAI",
provider.provider,
)
if is_o1_model(provider):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the new O models support temperature or other reasoning models for that matter?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this check from what I see we checked only o1 models (preview and mini), we don't have any O models within this one 🤷

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok actually I recall temperature is no longer a param in the newer models, we can just remove this check and expect the user to get an error if they specify temperature

@github-actions

github-actions Bot commented Sep 9, 2025

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  notdiamond
  prompts.py
  notdiamond/llms
  client.py
  providers.py
  notdiamond/toolkit
  custom_router.py
Project Total  

This report was generated by python-coverage-comment-action

Comment thread notdiamond/llms/client.py
"ChatOpenAI",
provider.provider,
)
if is_o1_model(provider):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok actually I recall temperature is no longer a param in the newer models, we can just remove this check and expect the user to get an error if they specify temperature

@dragos199993 dragos199993 merged commit 0c02a7b into main Sep 9, 2025
3 of 6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants