Versions in this module Expand all Collapse all v2 v2.1.0 Oct 2, 2024 v2.0.0 Oct 1, 2024 Changes in this version + var API_KEY = KeyType + var Bearer = KeyType + var GPTModelLite = GPTModel + var GPTModelPRO = GPTModel + var ParameterMaxTokens = GPTParameterName + var ParameterPrompt = GPTParameterName + var ParameterTemperature = GPTParameterName + var RoleAssistant = RoleModel + var RoleUser = RoleModel + type GPTMessage struct + Role RoleModel + Text string + type GPTModel struct + ModelName string + func (t *GPTModel) String() string + type GPTParameter struct + Name GPTParameterName + Value string + type GPTParameterName struct + Name string + func (n *GPTParameterName) String() string + type KeyType struct + KeyType string + func (t *KeyType) String() string + type Response struct + Result model.Result + Text string + type RoleModel struct + RoleName string + func (m *RoleModel) String() string + type YandexGPTSyncApp struct + App *endpoint.App + DebugMode bool + Message []model.Message + Response Response + SystemMessage model.Message + func NewYandexGPTSyncApp(Key string, KeyType KeyType, StorageID string, Model GPTModel) *YandexGPTSyncApp + func (p *YandexGPTSyncApp) AddMessage(Message GPTMessage) error + func (p *YandexGPTSyncApp) AddRawMessage(Message model.Message) error + func (p *YandexGPTSyncApp) ChangeCredentials(Key string, KeyType KeyType) + func (p *YandexGPTSyncApp) ClearMessages() + func (p *YandexGPTSyncApp) Configure(Parameters ...GPTParameter) error + func (p *YandexGPTSyncApp) SendRequest() (Response, error) + func (p *YandexGPTSyncApp) SetMessages(Messages ...GPTMessage) error Other modules containing this package github.com/neuron-nexus/yandexgpt