Skip to content

Commit

Permalink
ensure doc/fix/test functionality uses the openaicompatible model
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
  • Loading branch information
slimsag committed Mar 1, 2024
1 parent b7dd682 commit 5f3af92
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vscode/src/edit/utils/edit-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ export function getOverridenModelForIntent(intent: EditIntent, currentModel: Edi
case 'doc':
case 'fix':
case 'test':
// Edit commands have only been tested with Claude 2. Default to that for now.
return 'anthropic/claude-2.0'
// TODO(slimsag): need to ensure that when openaicompatible provider is in use we always
// respect the chosen model. Note that we cannot switch on currentModel because it is the
// model configured server-side in e.g. chatModel `foo` field, not a qualified `openaicompatible/foo`
// model string.
return currentModel
// // Edit commands have only been tested with Claude 2. Default to that for now.
// return 'anthropic/claude-2.0'
case 'add':
case 'edit':
// Support all model usage for add and edit intents.
Expand Down

0 comments on commit 5f3af92

Please sign in to comment.