Documentation ¶
Index ¶
- Constants
- func NewOlamaProviderConfig(baseURL, model string) olamaProviderConfig
- func NewTextToJSONProvider(config olamaProviderConfig, cmd *exec.Cmd) (baseprovider.TextToJSONProvider, error)
- func NewTextToTextProvider(config olamaProviderConfig, cmd *exec.Cmd) (baseprovider.TextToTextProvider, error)
- type TextToJSONProvider
- type TextToTextProvider
Constants ¶
View Source
const ( OLamaTextToJSONDefaultModel = "llama3.1:latest" OLamaTextToJSONDefaultModelFast = "llama3.2:latest" )
View Source
const ( OLamaTextToTextDefaultModel = "llama3.1:latest" OLamaTextToTextDefaultModelFast = "llama3.2:latest" )
Variables ¶
This section is empty.
Functions ¶
func NewOlamaProviderConfig ¶
func NewOlamaProviderConfig(baseURL, model string) olamaProviderConfig
func NewTextToJSONProvider ¶ added in v0.2.0
func NewTextToJSONProvider( config olamaProviderConfig, cmd *exec.Cmd, ) (baseprovider.TextToJSONProvider, error)
func NewTextToTextProvider ¶
func NewTextToTextProvider( config olamaProviderConfig, cmd *exec.Cmd, ) (baseprovider.TextToTextProvider, error)
Types ¶
type TextToJSONProvider ¶ added in v0.2.0
type TextToJSONProvider struct {
// contains filtered or unexported fields
}
func (TextToJSONProvider) Close ¶ added in v0.2.0
func (p TextToJSONProvider) Close() error
func (TextToJSONProvider) GenerateCompletion ¶ added in v0.2.0
func (p TextToJSONProvider) GenerateCompletion( ctx context.Context, messages []chat.Message, completionCh chan<- completion.Completion, ) error
func (TextToJSONProvider) GetModel ¶ added in v0.2.0
func (p TextToJSONProvider) GetModel() string
type TextToTextProvider ¶
type TextToTextProvider struct {
// contains filtered or unexported fields
}
func (TextToTextProvider) Close ¶
func (p TextToTextProvider) Close() error
func (TextToTextProvider) GenerateCompletion ¶
func (p TextToTextProvider) GenerateCompletion( ctx context.Context, messages []chat.Message, completionCh chan<- completion.Completion, ) error
func (TextToTextProvider) GetModel ¶
func (p TextToTextProvider) GetModel() string
Click to show internal directories.
Click to hide internal directories.