-
-
Notifications
You must be signed in to change notification settings - Fork 12
Add verbosity and reasoning_effort support to ai.chat and ai.stream.chat #657
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
base: develop
Are you sure you want to change the base?
Conversation
|
Co-authored-by: KallynGowdy <[email protected]>
Co-authored-by: KallynGowdy <[email protected]>
@copilot Please also add the following options for
|
Co-authored-by: KallynGowdy <[email protected]>
Added the requested
Both parameters are optional and work with all AI providers. The Commit: 5226c76 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR extends the AI chat system with two new optional parameters:
verbosity
andreasoning_effort
, providing developers with fine-grained control over AI response characteristics.New Parameters
verbosity
Controls the level of detail in AI responses:
low
: Produces concise, brief responsesmedium
: Produces moderately detailed responses (default behavior)high
: Produces detailed, comprehensive responsesreasoning_effort
Controls the reasoning effort applied when generating responses:
minimal
: Quick responses with minimal reasoninglow
: Some reasoning applied to responsesmedium
: Moderate reasoning effort (balanced approach)high
: Extensive reasoning and analysisUsage Examples
Implementation
reasoning_effort
maps directly to the native parameter for compatible models (like o1), whileverbosity
is implemented via system message instructionsBackward Compatibility
Both parameters are optional and maintain full backward compatibility. Existing code continues to work unchanged while new code can leverage the enhanced control options.
Testing
Added comprehensive unit tests covering both regular and streaming chat functionality, ensuring parameters are properly validated and passed through the entire system.
Extends #654 with additional functionality requested in PR feedback.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.