Replace temperature with fixed creativity levels #717
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Temperature (0.0-1.0 float) is unintuitive for non-technical users. Replaced with three fixed creativity levels: "aus" (conservative), "normal" (balanced), "hoch" (creative).
Backend
API Models
temperature: float→creativity: stringinAssistantBase,AssistantUpdate,AssistantVersionResponsecreativity: Optional[str]toChatCompletionRequest(supports both for backward compatibility)Model Configuration
ModelInfo:ModelsConfig.get_temperature_for_creativity()converts creativity → temperature at runtimeDatabase
temperaturecolumn tocreativitycolumn< 0.4 → "aus",0.4-0.8 → "normal",≥ 0.8 → "hoch"Router
chat_router.get_temperature_from_request()converts creativity to model-specific temperature before LLM callFrontend
UI Components
AdvancedSettingsStep.tsxChatSettingsContent.tsxType System
temperature: number→creativity: stringuseAssistantState,useCreateAssistantStateLocal Storage Migration
migration.tsconverts legacy temperature values to creativity on first loadTranslations
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.