feat(client): add LLMClient abstraction with configurable reasoning inclusion #52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/issue-49-llm-client"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add an
LLMClientwrapper overgo-openaithat centralizes all LLM API calls and supports configurable reasoning content filtering.Closes #49.
Changes
internal/config/config.goIncludeReasoning boolconfig field (default false)internal/client/llm_client.goLLMClient+ChatRequest+convertMessages()internal/client/llm_client_test.gointernal/client/manager.goLLMClient()factory methodinternal/agent/agent.go*openai.Clientto*LLMClientinternal/agent/compact.goLLMClientDesign
LLMClientIncludeReasoning = false)~/.config/gd/config.toml:[defaults] include_reasoning = trueVerification
make build✅go test ./... -count=1— all 8 packages pass ✅go vet✅