prompt

package
v0.0.0-...-0d1764f Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	GenerationClient generate.Client
}

func NewAPI

func NewAPI() *API

type ErrorResponse

type ErrorResponse struct {
	Error     string `json:"error"`
	ErrorType string `json:"error_type"`
}

type PromptRequest

type PromptRequest struct {
	Prompt string `json:"prompt"`
}

type PromptResponse

type PromptResponse struct {
	Response string `json:"response"`
}

Jump to

Keyboard shortcuts

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