request

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completion

type Completion struct {
	Model         models.Model
	SystemMessage string
	UserMessage   string
	History       []Message
	Fallback      []models.Model
	Temperature   float32
	TopP          float32
	Tags          map[string]string `json:"tags"`
}

type Message

type Message struct {
	// Role should either be 'user' or 'assistant'
	Role    string
	Content string
}

type MimeType

type MimeType string
const (
	MimeTypeJSON       MimeType = "application/json"
	MimeTypeXML        MimeType = "application/xml"
	MimeTypePDF        MimeType = "application/pdf"
	MimeTypeZip        MimeType = "application/zip"
	MimeTypeForm       MimeType = "application/x-www-form-urlencoded"
	MimeTypeOctetStr   MimeType = "application/octet-stream"
	MimeTypeJavaScript MimeType = "application/javascript"

	MimeTypePlainText MimeType = "text/plain"
	MimeTypeHTML      MimeType = "text/html"
	MimeTypeCSS       MimeType = "text/css"
	MimeTypeCSV       MimeType = "text/csv"
	MimeTypeMarkdown  MimeType = "text/markdown"

	MimeTypeJPEG MimeType = "image/jpeg"
	MimeTypePNG  MimeType = "image/png"
	MimeTypeGIF  MimeType = "image/gif"
	MimeTypeSVG  MimeType = "image/svg+xml"
	MimeTypeWebP MimeType = "image/webp"
)

Jump to

Keyboard shortcuts

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