plugins

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChatGPTPluginName = "OpenAIGPTLinuxTerminal"
)

Variables

This section is empty.

Functions

func Init

func Init(history []History, openAIKey string) *openAIGPTVirtualTerminal

Types

type Choice

type Choice struct {
	Text         string      `json:"text"`
	Index        int         `json:"index"`
	Logprobs     interface{} `json:"logprobs"`
	FinishReason string      `json:"finish_reason"`
}

type History

type History struct {
	Input, Output string
}

Jump to

Keyboard shortcuts

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