Documentation ¶
Index ¶
Constants ¶
View Source
const YaModelLite = "yandexgpt-lite"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alternative ¶
type Alternative struct { // A message containing the content of the alternative. Message Message // The generation status of the alternative Status v1.Alternative_AlternativeStatus }
Represents a generated completion alternative, including its content and generation status.
type CompletionResponse ¶
type CompletionResponse struct { // A list of generated completion alternatives. Alternatives []Alternative // A set of statistics describing the number of content tokens used by the completion model. Usage ContentUsage // The model version changes with each new releases. ModelVersion string }
type ContentUsage ¶
type IamFace ¶
type IamFace interface { Create() (*IamTokenResponse, error) CreateWithCtx(ctx context.Context) (*IamTokenResponse, error) Close() error }
type IamTokenResponse ¶
type YaGPT ¶
type YaGPT struct {
// contains filtered or unexported fields
}
func (*YaGPT) Completion ¶
func (y *YaGPT) Completion(iamTok string, m []Message) (*CompletionResponse, error)
func (*YaGPT) CompletionWithCtx ¶
Click to show internal directories.
Click to hide internal directories.