openai

package
v0.0.0-...-5abdc20 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *openai.Client

Types

type Caller

type Caller interface {
	// contains filtered or unexported methods
}

type IndexSentence

type IndexSentence struct {
	Index    int    `json:"index" jsonschema_description:"The index of the sentence"`
	Sentence string `json:"sentence" jsonschema_description:"The sentence"`
}

type OpenAICaller

type OpenAICaller struct{}

type OpenAITranslator

type OpenAITranslator struct {
	Transcript   types.Transcript
	OpenAICaller Caller
}

func (*OpenAITranslator) Translate

func (t *OpenAITranslator) Translate() error

Jump to

Keyboard shortcuts

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