-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Inline Edit): removes reasoning models from selector (#7238)
This PR addresses the issue where models with reasoning capabilities were causing edits to fail when selected in the Inline Edit model selector. Changes Made - Added logic to filter out the ModelUsage.Edit capability from any model that has the reasoning capability Introduced new model capabilities reasoning and tools to properly identify models with these features Added corresponding model tags Reasoning and Tools to the tag enum Updated code to maintain the model capabilities but selectively remove edit usage when reasoning is detected Added entry to the changelog to document this fix - Implementation Details - The core fix is implemented by checking if a model's capabilities include 'reasoning' and, if so, removing the Edit usage from that model's available usages. This prevents reasoning-enabled models from appearing in the Inline Edit model selector while maintaining their availability for chat and other supported features. ## Test Plan The change has been tested to ensure that: - Reasoning models no longer appear in the Inline Edit model selector - Reasoning models remain available for chat and other supported features - Non-reasoning models with edit capability still work as expected Before - connect to dotcom and open the inline edit model selector, 3.7 sonnet is listed in the dropdown  After - 3.7 removed 
- Loading branch information
Showing
7 changed files
with
103 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ings/kotlin/lib/src/main/kotlin/com/sourcegraph/cody/agent/protocol_generated/ModelTag.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport") | ||
package com.sourcegraph.cody.agent.protocol_generated; | ||
|
||
typealias ModelTag = String // One of: power, speed, balanced, other, recommended, deprecated, experimental, waitlist, on-waitlist, early-access, internal, pro, free, enterprise, gateway, byok, local, ollama, dev, stream-disabled, vision | ||
typealias ModelTag = String // One of: power, speed, balanced, other, recommended, deprecated, experimental, waitlist, on-waitlist, early-access, internal, pro, free, enterprise, gateway, byok, local, ollama, dev, stream-disabled, vision, reasoning, tools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters