payload

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonSchema

type JsonSchema struct {
	Name   string           `json:"name"`
	Schema *json.RawMessage `json:"schema"`
}

type Message

type Message struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type Request

type Request struct {
	Model      string      `json:"model"`
	Messages   []*Message  `json:"messages"`
	JsonSchema *JsonSchema `json:"json_schema,omitempty"`
}

type Response

type Response struct {
	Message *Message `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳