summaryrefslogtreecommitdiff
path: root/internal/llm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-17 18:52:51 +0300
committerPaul Buetow <paul@buetow.org>2025-08-17 18:52:51 +0300
commit454451105ad3522d2ac3d22136eedee4a4d034af (patch)
treeaa4b5723809c4d45bfc9094a38c01c6415582f9c /internal/llm
parent498923e77c201ca90dc35c7934f4f7f1c9c3ccd2 (diff)
cli+lsp: refactor main packages into internal runners; add tests
- Move CLI logic to internal/hexaicli with Run/RunWithClient - Move LSP logic to internal/hexailsp with Run/RunWithFactory - Extract helpers; keep behavior identical for both binaries - Add unit tests for hexaicli (input parsing, messages, streaming) and hexailsp (factory wiring, client creation, logging settings) - Add top-of-file summaries and 'Not yet reviewed by a human' comments to all Go files - Update README with internal package docs
Diffstat (limited to 'internal/llm')
-rw-r--r--internal/llm/copilot.go2
-rw-r--r--internal/llm/ollama.go2
-rw-r--r--internal/llm/openai.go2
-rw-r--r--internal/llm/provider.go2
4 files changed, 8 insertions, 0 deletions
diff --git a/internal/llm/copilot.go b/internal/llm/copilot.go
index a31022f..1e36bb7 100644
--- a/internal/llm/copilot.go
+++ b/internal/llm/copilot.go
@@ -1,3 +1,5 @@
+// Summary: GitHub Copilot client implementation for chat completions using the Copilot API.
+// Not yet reviewed by a human
package llm
import (
diff --git a/internal/llm/ollama.go b/internal/llm/ollama.go
index ffee354..774eaf1 100644
--- a/internal/llm/ollama.go
+++ b/internal/llm/ollama.go
@@ -1,3 +1,5 @@
+// Summary: Ollama client against a local server; supports chat responses and streaming via /api/chat.
+// Not yet reviewed by a human
package llm
import (
diff --git a/internal/llm/openai.go b/internal/llm/openai.go
index 080d4e9..288622f 100644
--- a/internal/llm/openai.go
+++ b/internal/llm/openai.go
@@ -1,3 +1,5 @@
+// Summary: OpenAI client implementation for chat completions with optional streaming and detailed logging.
+// Not yet reviewed by a human
package llm
import (
diff --git a/internal/llm/provider.go b/internal/llm/provider.go
index 3e3023e..09e97e6 100644
--- a/internal/llm/provider.go
+++ b/internal/llm/provider.go
@@ -1,3 +1,5 @@
+// Summary: LLM provider interfaces, request options, configuration, and factory to build a client from config.
+// Not yet reviewed by a human
package llm
import (