Skip to content

Conversation

@kzu
Copy link
Member

@kzu kzu commented Aug 20, 2025

@kzu kzu requested a review from Copilot August 20, 2025 20:46
@kzu kzu added the enhancement New feature or request label Aug 20, 2025
Copy link
Contributor

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 pull request adds support for the new Verbosity feature introduced in GPT-5 models, allowing control over the number of output tokens to reduce latency. The implementation follows the same pattern as the existing ReasoningEffort feature.

  • Adds a Verbosity enum with Low, Medium, and High levels
  • Integrates verbosity support into the OpenAI chat client with proper JSON serialization
  • Extends ChatOptions with a Verbosity property for easy configuration

Reviewed Changes

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

File Description
src/AI/Verbosity.cs Defines the new Verbosity enum with Low, Medium, and High options
src/AI/OpenAI/OpenAIChatClient.cs Implements verbosity support in the OpenAI client with VerbosityOptions class
src/AI/ChatExtensions.cs Adds Verbosity property to ChatOptions for configuration
src/AI.Tests/OpenAITests.cs Adds comprehensive test coverage for the verbosity feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@kzu
Copy link
Member Author

kzu commented Aug 20, 2025

1 passed 1 passed 17 skipped

🧪 Details on Ubuntu 24.04.2 LTS

from dotnet-retest v0.7.2 on .NET 9.0.8 with 💜 by @devlooped

@kzu kzu enabled auto-merge (rebase) August 20, 2025 20:50
@kzu kzu merged commit 116b152 into main Aug 20, 2025
7 checks passed
@kzu kzu deleted the dev/verbosity branch August 20, 2025 20:52
@devlooped devlooped locked and limited conversation to collaborators Sep 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants