Documentation ¶
Index ¶
- Constants
- type OpenAI
- func (o *OpenAI) DecryptSecret(aes encryption.AES) error
- func (o *OpenAI) EncryptSecret(aes encryption.AES) error
- func (o *OpenAI) Message(ctx context.Context, message string, dataChan chan string) error
- func (o *OpenAI) ValidateConfig(validate *validator.Validate) error
- func (o *OpenAI) VerifyAuth(ctx context.Context) error
Constants ¶
View Source
const (
ModelGPT4 = "gpt-4"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAI ¶
type OpenAI struct { common.GenerativeAiIntegrationCommon APIKey string `json:"api_key" validate:"required" required:"true"` ModelID string `json:"model_id" validate:"required,oneof=gpt-4" required:"true" enum:"gpt-4"` }
func NewFromDBEntry ¶
func (*OpenAI) DecryptSecret ¶
func (o *OpenAI) DecryptSecret(aes encryption.AES) error
func (*OpenAI) EncryptSecret ¶
func (o *OpenAI) EncryptSecret(aes encryption.AES) error
func (*OpenAI) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.