Skip to content

Conversation

pashpashpash
Copy link
Contributor

@pashpashpash pashpashpash commented Aug 7, 2025

Related Issue

Issue: #XXXX

Description

Test Procedure

Type of Change

  • πŸ› Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ’₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • πŸ’… Cosmetic Changes
  • πŸ“š Documentation update
  • πŸƒ Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Introduce GPT-5 model support, update default model, and enhance plan mode response handling with exploration parameter.

  • Models:
    • Add gpt-5-2025-08-07, gpt-5-mini-2025-08-07, gpt-5-nano-2025-08-07, and nectarine-alpha-new-reasoning-effort-2025-07-25 to openAiNativeModels in api.ts.
    • Set openAiNativeDefaultModelId to gpt-5-2025-08-07.
  • Utilities:
    • Add isGPT5ModelFamily() and update isNextGenModelFamily() in model-utils.ts to include GPT-5.
  • API Handling:
    • Update OpenAiNativeHandler in openai-native.ts to handle new GPT-5 models with streaming and usage options.
  • Prompts:
    • Add needs_more_exploration parameter to plan_mode_respond in system.ts and claude4.ts to indicate further exploration is needed.

This description was created by Ellipsis for bb96e6e. You can customize this summary. It will automatically update as commits are pushed.

@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 16:39
Copy link

changeset-bot bot commented Aug 7, 2025

⚠️ No Changeset found

Latest commit: 455f1a8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@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 to the Cline codebase, including new model configurations, pricing information, and integration with the next-generation model feature flags.

  • Adds GPT-5 model family detection and configuration
  • Updates default model to GPT-5 and includes multiple GPT-5 variants with pricing
  • Enhances plan mode functionality with exploration control features

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/utils/model-utils.ts Adds GPT-5 model family detection and consolidates next-gen model checking
src/shared/api.ts Updates default model and adds GPT-5 model configurations with pricing
src/core/task/index.ts Refactors to use centralized next-gen model detection
src/core/task/ToolExecutor.ts Refactors to use centralized next-gen model detection and adds exploration control
src/core/prompts/system.ts Updates plan mode documentation with exploration parameter
src/core/prompts/model_prompts/claude4.ts Updates plan mode documentation and adds markdown formatting guidelines
src/core/assistant-message/index.ts Adds needs_more_exploration parameter to tool parameter names
src/api/providers/openai-native.ts Adds API handling for GPT-5 models with reasoning effort support

@pashpashpash pashpashpash merged commit 9b7839e into main Aug 7, 2025
12 checks passed
Copy link
Contributor

github-actions bot commented Aug 7, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

βœ… Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

βœ… Coverage increased or remained the same

Overall Assessment

βœ… Test coverage has been maintained or improved

Last updated: 2025-08-07T16:50:41.992175

const stream = await client.chat.completions.create({
model: model.id,
temperature: 1,
messages: [{ role: "developer", content: systemPrompt }, ...convertToOpenAiMessages(messages)],

Choose a reason for hiding this comment

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

I am seeing the following when trying to use gpt-5 deployed in Azure AI Foundry
image

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.

5 participants