-
Notifications
You must be signed in to change notification settings - Fork 60.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? # to your account
temporary fix for o3-mini #6132
Conversation
@RetiredQQ is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe pull request updates the handling of model identification in several modules. The changes add conditions to account for models starting with "o3" in functions that filter models, set request parameters, and select icons. Additionally, the request payload logic now considers models starting with "o1" or "o3" for parameter defaults and timeout adjustments, and a new model entry ("o3-mini") is added to the knowledge cutoff mapping. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ChatAPI as ChatGPTApi (openai.ts)
participant RemoteAPI as OpenAI API
User->>ChatAPI: Initiate chat request
ChatAPI->>ChatAPI: Check if model starts with "o1" or "o3"
ChatAPI->>ChatAPI: Set default parameters (temperature, penalties, timeout)
ChatAPI->>RemoteAPI: Send chat request with updated parameters
RemoteAPI-->>ChatAPI: Return response
ChatAPI->>User: Return chat response
sequenceDiagram
participant Caller
participant ModelsAPI as getModels (openai.ts)
participant RemoteService as Remote Model Service
Caller->>ModelsAPI: Request available models
ModelsAPI->>RemoteService: Fetch remote models list
RemoteService-->>ModelsAPI: Send models array
ModelsAPI->>ModelsAPI: Filter out models starting with "gpt-4", "chatgpt-4o", "o1", and "o3"
ModelsAPI->>Caller: Return filtered models list
Possibly related PRs
Poem
π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (4)
π Additional comments (8)
β¨ Finishing Touches
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 (
|
π» εζ΄η±»ε | Change Type
π εζ΄θ―΄ζ | Description of Change
π θ‘₯ε δΏ‘ζ― | Additional Information
Summary by CodeRabbit