api

package
v0.0.0-...-3db31ac Latest Latest
Warning

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

Go to latest
Published: Oct 12, 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 API

type API struct {
}

func New

func New() *API

func (*API) ChatCompletions

func (api *API) ChatCompletions(content string)

func (*API) CheckUsage

func (api *API) CheckUsage() *common.CheckUsageResponse

func (*API) ClearConversations

func (api *API) ClearConversations()

func (*API) CreateConversation

func (api *API) CreateConversation(content string)

func (*API) DeleteConversation

func (api *API) DeleteConversation(conversationID string)

func (*API) GenerateTitle

func (api *API) GenerateTitle(conversationID string)

func (*API) GetConversation

func (api *API) GetConversation(conversationID string)

func (*API) GetConversations

func (api *API) GetConversations() *common.Conversations

func (*API) RenameTitle

func (api *API) RenameTitle(conversationID string, title string)

Jump to

Keyboard shortcuts

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