Added support for promptEnhancement#304
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches✨ Simplify code
Comment |
There was a problem hiding this comment.
Pull request overview
This PR adds a new nested settings shape for settings.promptEnhancement by introducing an IPromptEnhancement dataclass and wiring dict-to-dataclass coercion in ISettings.__post_init__.
Changes:
- Added
IPromptEnhancementdataclass (enabled,temperature,topP) for nested prompt enhancement settings. - Added
ISettings.promptEnhancementfield (supportsIPromptEnhancement,dict, orbool) and coerces dict inputs toIPromptEnhancementin__post_init__. - Removed
ISettings.promptUpsampling(backward-incompatible; see review comments).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if isinstance(self.promptEnhancement, dict): | ||
| self.promptEnhancement = IPromptEnhancement(**self.promptEnhancement) |
Added
IPromptEnhancementdataclass for nestedsettings.promptEnhancement:enabled: Optional[bool]temperature: Optional[float]topP: Optional[float]