Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
What
Add support for
o1
,o1-2024-12-17
I'm aware of #1402 , but it was still WIP at this moment. Since I really need this feature asap, I've created my own PR.
Related links
https://openai.com/index/o1-and-new-tools-for-developers/
https://openai.com/api/pricing/#22wmoBV0tcLNLWL3xTd6IC
PR Type
Enhancement
Description
o1
ando1-2024-12-17
with 200K token context windowChanges walkthrough 📝
__init__.py
Add new O1 model variants with extended context window
pr_agent/algo/init.py
o1
ando1-2024-12-17
with 200Ktoken context windows
litellm_ai_handler.py
Update O1 model prefix handling in chat completion
pr_agent/algo/ai_handlers/litellm_ai_handler.py
handle all O1 model variants