summaryrefslogtreecommitdiff
path: root/internal/lsp/handlers_document.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/handlers_document.go')
-rw-r--r--internal/lsp/handlers_document.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/lsp/handlers_document.go b/internal/lsp/handlers_document.go
index f8ed9ed..9325877 100644
--- a/internal/lsp/handlers_document.go
+++ b/internal/lsp/handlers_document.go
@@ -172,10 +172,7 @@ func (s *Server) detectAndHandleChat(uri string) {
if client == nil {
return
}
- modelUsed := spec.effectiveModel()
- if strings.TrimSpace(modelUsed) == "" {
- modelUsed = client.DefaultModel()
- }
+ modelUsed := spec.effectiveModel(client.DefaultModel())
logging.Logf("lsp ", "chat llm=requesting model=%s", modelUsed)
text, err := s.chatWithStats(ctx, surfaceChat, spec, msgs)
if err != nil {