openai

package
v0.0.0-...-088cac8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASR

func ASR(filePath string, languageCode string) (string, error)

func Chat

func Chat(model string, messages []TypeOpenaiChatMessage) (string, error)

func TTS

func TTS(filePath string, text string) error

Types

type TypeOpenaiChatMessage

type TypeOpenaiChatMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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