serve

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, ms ...mux.Model) *chat

func NewModel

func NewModel(ctx context.Context) *model

Types

type Conf

type Conf struct {
	Gpt3 string `yaml:"gpt3,omitempty"`
	Gpt4 string `yaml:"gpt4,omitempty"`
	Img  string `yaml:"image,omitempty"`
}

func (*Conf) Initial

func (c *Conf) Initial(s *Serve, bks ...pkg.Backender)

type Serve

type Serve struct {
	// contains filtered or unexported fields
}

func NewServe

func NewServe() *Serve

func (*Serve) Run

func (s *Serve) Run(addr string) error

Jump to

Keyboard shortcuts

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