api

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBindingError = errors.New("BINDING_ERROR")
View Source
var ErrNotFound = errors.New("Not Found")

Functions

This section is empty.

Types

type Provider

type Provider struct {
	CliProvider apiInterface.OpenAIClientProvider
	PromptSet   pt.PromptSet
}

func NewProvider

func NewProvider(prov apiInterface.OpenAIClientProvider, paths []string) *Provider

func (*Provider) AbilityHandler

func (p *Provider) AbilityHandler(c *gin.Context)

func (*Provider) AbilityStreamHandler

func (p *Provider) AbilityStreamHandler(c *gin.Context)

func (*Provider) AbilityVarHandler

func (p *Provider) AbilityVarHandler(c *gin.Context)

func (*Provider) AppendRouter

func (p *Provider) AppendRouter(group *gin.RouterGroup)

type Request

type Request struct {
	Input map[string]string `json:"input"`
}

Jump to

Keyboard shortcuts

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