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