-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add o1-preview support #153
base: main
Are you sure you want to change the base?
add o1-preview support #153
Conversation
WalkthroughThe changes introduce a new model reference named "o1-preview" in the OpenAI configuration within the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
plugins/openai/src/gpt.ts (1)
95-95
: Consider adding JSDoc documentation for the o1Preview model.
Adding documentation about the model's specific use cases, limitations, and any known constraints would help users make informed decisions about using this model.
Example documentation:
+/**
+ * OpenAI's o1-preview model reference.
+ * @remarks
+ * - Only supports text output format
+ * - Does not support tools, media, or system role
+ * - Suitable for [specific use cases]
+ * - Known limitations: [any specific constraints]
+ */
export const o1Preview = modelRef({
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- plugins/openai/src/gpt.ts (3 hunks)
🔇 Additional comments (4)
plugins/openai/src/gpt.ts (4)
61-61
: LGTM: Model correctly added to supported response format list.
The addition is consistent with the model's capabilities defined in its configuration.
95-109
: LGTM: Model reference correctly defined with appropriate capabilities.
The model reference follows the established pattern and correctly specifies its limited capabilities.
204-204
: LGTM: Model correctly added to supported models map.
The addition follows the established pattern and correctly maps the model version to its reference.
95-109
: Tests needed for o1-preview model integration.
The PR objectives mention that tests haven't been added yet. Please add tests to verify:
- Model initialization with correct capabilities
- Response format handling
- Integration with the OpenAI client
Let's check for existing test patterns:
Would you like help generating the test cases for the o1-preview model?
Also applies to: 204-204
Before you submit a pull request, please make sure you have read and understood the contribution guidelines and the code of conduct.
This pull request is related to:
a new feature: support openAI o1 model
I have checked the following:
Description:
this allows to choose "openai/o1-preview" as model
Related issues:
#145
Summary by CodeRabbit
New Features
Bug Fixes
Documentation