models

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 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 ChatCompletionMessage

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

type ChatCompletionModel

type ChatCompletionModel struct {
	Id      string        `json:"id"`
	Choices []ChoiceModel `json:"choices"`
	Model   string        `json:"model"`
}

type ChatCompletionRequest

type ChatCompletionRequest struct {
	Messages []ChatCompletionMessage `json:"messages"`
}

type ChatFinishReason

type ChatFinishReason string
const (
	Stop          ChatFinishReason = "stop"
	Length        ChatFinishReason = "length"
	ContentFilter ChatFinishReason = "content_filter"
	FunctionCall  ChatFinishReason = "function_call"
)

type ChoiceModel

type ChoiceModel struct {
	FinishReason ChatFinishReason      `json:"finish_reason"`
	Index        int32                 `json:"index"`
	Message      ChatCompletionMessage `json:"message"`
}

type KnowledgeModelChat

type KnowledgeModelChat struct {
	Messages  []ChatCompletionMessage `json:"messages"`
	CreatedOn time.Time               `json:"created_on"`
}

type KnowledgeModelChatHistory

type KnowledgeModelChatHistory map[string]KnowledgeModelChat

Jump to

Keyboard shortcuts

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