Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultOllamaEndpoint = "http://127.0.0.1:11434" DefaultTemperature = 0.7 DefaultNumPredict = 200 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OllamaOptions ¶
type OllamaParams ¶
type OllamaParams struct {
Model LLMmodel `json:"model"`
Prompt string `json:"prompt"`
Stream bool `json:"stream"`
Options OllamaOptions `json:"options"`
}
type OllamaToken ¶
type Prompter ¶
type Prompter struct {
Endpoint string
Model LLMmodel
Opt OllamaOptions
}
func NewPrompter ¶
func NewPrompter(endpoint string, model LLMmodel, opt ...OllamaOptions) Prompter
func (Prompter) GetCommitMsg ¶
func (Prompter) GetSummary ¶
Click to show internal directories.
Click to hide internal directories.