openaiezgo

package module
v0.0.0-...-609f08b Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 4 Imported by: 0

README

openai-ezgo

Documentation

Index

Constants

This section is empty.

Variables

Functions

func EndSpeech

func EndSpeech(from string) string

func NewCharacterSet

func NewCharacterSet(from string, words string) string

func NewClient

func NewClient(apiKey string)

func NewClientWithConfig

func NewClientWithConfig(cfg NodeConfig)

func NewSpeech

func NewSpeech(from string, words string) string

func NewSpeechMaxToken

func NewSpeechMaxToken(from string, words string, maxToken int) string

Types

type ChatInstance

type ChatInstance struct {
	Timeout   int
	History   *chatHistory
	TokenUsed int
}

type NodeConfig

type NodeConfig struct {
	APIKey          string
	BaseURL         string
	Timeout         int
	TimeoutCallback func(string, int)
	MaxTokens       int
	HistoryLimit    int
}

func DefaultConfig

func DefaultConfig(authToken string) NodeConfig

Jump to

Keyboard shortcuts

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