Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultPort ¶
func GetDefaultPort() int
func GetFastModelName ¶
func GetFastModelName() string
func GetModerateSpeedModelName ¶
func GetModerateSpeedModelName() string
func GetSlowModelName ¶
func GetSlowModelName() string
func SendPrompt ¶
Send a single prompt (no conversation) to a ollama server and return the complete response.
This function is not streaming the result, it waits until the answer is complete and returns it as a whole.
Types ¶
type PromptOptions ¶
func (*PromptOptions) GetGenerateUrl ¶
func (p *PromptOptions) GetGenerateUrl(ctx context.Context) (string, error)
func (*PromptOptions) GetHostnameOrDefault ¶
func (p *PromptOptions) GetHostnameOrDefault() (string, error)
func (*PromptOptions) GetModelNameOrDefault ¶
func (p *PromptOptions) GetModelNameOrDefault(ctx context.Context) (string, error)
func (*PromptOptions) GetPortOrDefault ¶
func (p *PromptOptions) GetPortOrDefault() (int, error)
Click to show internal directories.
Click to hide internal directories.