maritaca

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaritacaModel

type MaritacaModel struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(modelSlug string, apiKey string) *MaritacaModel

func (*MaritacaModel) GetHeaders

func (m *MaritacaModel) GetHeaders() map[string]string

func (*MaritacaModel) GetUrl

func (m *MaritacaModel) GetUrl() string

func (*MaritacaModel) ParseResponse

func (m *MaritacaModel) ParseResponse(rawRes []byte) (string, error)

func (*MaritacaModel) PreparePayload

func (m *MaritacaModel) PreparePayload(chatHistory *chat.ChatHistory, systemPrompt string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳