Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface {
CreateChatCompletion(ctx context.Context, request openai.ChatCompletionRequest) (openai.ChatCompletionResponse, error)
}
APIClient интерфейс для работы с ChatGPT API
type Config ¶
type Config struct {
APIKey string
Model string
MaxTurns int
SystemPrompt string
NewClient func(APIKey string) APIClient
}
Config конфигурация для ChatGPTProcessor
func DefaultConfig ¶
DefaultConfig возвращает конфигурацию по умолчанию
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
NewWithConfig создаёт процессор с указанной конфигурацией
Click to show internal directories.
Click to hide internal directories.