summaryrefslogtreecommitdiff
path: root/internal/lsp/handlers_document.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-27 02:19:22 +0300
committerPaul Buetow <paul@buetow.org>2025-09-27 02:19:22 +0300
commit51b2621d58633aa5c0f5cc7b64616d70d41acc91 (patch)
tree0c413061a5ab8061ddeab9c3f421228737613ecb /internal/lsp/handlers_document.go
parent1731126b52e406a300270c8fc8ac1061a4422b27 (diff)
Support multi-provider fan-out across CLI and completions
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 {