Skip to content

Conversation

tysonthomas9
Copy link
Collaborator

Add support for Open Router GPT-5

@tysonthomas9 tysonthomas9 requested review from Copilot and olesho August 7, 2025 18:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for GPT-5 models and newer OpenAI models (O3, O4) in the AI chat panel. The implementation includes proper handling of temperature parameters for models that don't support them and updates the hardcoded model lists.

  • Added GPT-5, GPT-5 Mini, GPT-5 Nano, O3 Mini, and GPT-4.1 models to the default OpenAI model list
  • Updated model parameter handling to exclude temperature for models that don't support it (GPT-5, O3, O4 series)
  • Added a utility method to clear model cache and ensure latest model lists are used

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
AIChatPanel.ts Added new model options and cache clearing functionality
Version.ts Bumped version to 0.3.1
OpenRouterProvider.ts Added temperature parameter exclusion for newer models
OpenAIProvider.ts Added GPT-5 model definitions and parameter compatibility handling

@tysonthomas9 tysonthomas9 merged commit 4cfb2f7 into main Aug 7, 2025
tysonthomas9 added a commit that referenced this pull request Sep 28, 2025
This PR adds support for GPT-5 models and newer OpenAI models (O3, O4) in the AI chat panel for OpenRouter!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant