plugins

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChatGPTPluginName = "OpenAIGPTLinuxTerminal"
)

Variables

This section is empty.

Functions

This section is empty.

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
}

type OpenAIGPTVirtualTerminal

type OpenAIGPTVirtualTerminal struct {
	Histories               []History
	OpenAPIChatGPTSecretKey string
	// contains filtered or unexported fields
}

func (*OpenAIGPTVirtualTerminal) GetCompletions

func (openAIGPTVirtualTerminal *OpenAIGPTVirtualTerminal) GetCompletions(command string) (string, error)

func (*OpenAIGPTVirtualTerminal) InjectDependency

func (openAIGPTVirtualTerminal *OpenAIGPTVirtualTerminal) InjectDependency()

Jump to

Keyboard shortcuts

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