server

package
v0.0.0-...-6a018af Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateRequest

type GenerateRequest struct {
	Prompt         string          `json:"prompt"`
	VisemeSequence viseme.Sequence `json:"visemes"`
}

GenerateRequest is the struct that can parse the POST request sent to /generate

type GenerateResponse

type GenerateResponse struct {
	OutputSequence output.Sequence `json:"sequence"`
}

GenerateResponse contains the respost to POST /generate calls

func HandleGenerate

func HandleGenerate(ctx context.Context, r *GenerateRequest) (*GenerateResponse, error)

HandleGenerate handles the POST /generate calls

Jump to

Keyboard shortcuts

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