From c40056f2102893c4c04aa2fa2380a4146d370e81 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 16 Mar 2026 03:59:57 +0200 Subject: Add doc comments to exported types and functions Document ~30 exported types in lsp/types.go and exported functions in llm/provider.go, lsp/server.go, and hexailsp/run.go. Co-Authored-By: Claude Opus 4.6 --- internal/llm/provider.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'internal/llm') diff --git a/internal/llm/provider.go b/internal/llm/provider.go index 847ea60..f3170ef 100644 --- a/internal/llm/provider.go +++ b/internal/llm/provider.go @@ -56,9 +56,16 @@ type Options struct { // RequestOption mutates Options. type RequestOption func(*Options) -func WithModel(model string) RequestOption { return func(o *Options) { o.Model = model } } +// WithModel sets the model name for a request. +func WithModel(model string) RequestOption { return func(o *Options) { o.Model = model } } + +// WithTemperature sets the sampling temperature for a request. func WithTemperature(t float64) RequestOption { return func(o *Options) { o.Temperature = t } } -func WithMaxTokens(n int) RequestOption { return func(o *Options) { o.MaxTokens = n } } + +// WithMaxTokens sets the maximum number of tokens to generate. +func WithMaxTokens(n int) RequestOption { return func(o *Options) { o.MaxTokens = n } } + +// WithStop sets custom stop sequences for a request. func WithStop(stop ...string) RequestOption { return func(o *Options) { o.Stop = append([]string{}, stop...) } } -- cgit v1.2.3