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 ¶
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
Click to show internal directories.
Click to hide internal directories.