Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OllamaAIModel ¶
type OllamaAIModel struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(modelName string, host string, model string) *OllamaAIModel
func (*OllamaAIModel) GetHeaders ¶
func (m *OllamaAIModel) GetHeaders() map[string]string
func (*OllamaAIModel) GetUrl ¶
func (m *OllamaAIModel) GetUrl() string
func (*OllamaAIModel) ParseResponse ¶
func (m *OllamaAIModel) ParseResponse(rawRes []byte) (string, error)
func (*OllamaAIModel) PreparePayload ¶
func (m *OllamaAIModel) PreparePayload(chatHistory *chat.ChatHistory, systemPrompt string) (string, error)
Click to show internal directories.
Click to hide internal directories.