bot

package
v0.0.0-...-cb91914 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(c config.BotConfiguration) error

Types

type InferenceInputs

type InferenceInputs struct {
	PastUserInputs     []string `json:"past_user_inputs"`
	GeneratedResponses []string `json:"generated_responses"`
	Text               string   `json:"text"`
}

type InferenceParameters

type InferenceParameters struct {
	TopK              float32 `json:"top_k"`
	TopP              float32 `json:"top_p"`
	Temperature       float32 `json:"temperature"`
	RepetitionPenalty float32 `json:"repetition_penalty"`
}

type InferenceQuery

type InferenceQuery struct {
	Inputs     InferenceInputs     `json:"inputs"`
	Parameters InferenceParameters `json:"parameters"`
}

type InferenceResult

type InferenceResult struct {
	GeneratedText string `json:"generated_text"`
}

Jump to

Keyboard shortcuts

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