api

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *config.Config, logger *logger.Logger) *Client

func (*Client) GenerateTextFromChatCmd

func (c *Client) GenerateTextFromChatCmd(chatHistory []domain.Message, requestText string) tea.Cmd

func (*Client) GenerateTextFromInstructionCmd

func (c *Client) GenerateTextFromInstructionCmd(requestText string) tea.Cmd

func (*Client) WaitResponseCmd

func (c *Client) WaitResponseCmd() tea.Cmd

type TextGenerationMsg

type TextGenerationMsg = string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL