api

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func Initialise

func Initialise(ready chan<- error, port string, isDebug bool)

Types

type ModelInfo

type ModelInfo struct {
	Provider        string `json:"provider"`
	Model           string `json:"model"`
	ApiKey          string `json:"api_key"`
	BaseUrl         string `json:"base_url"`
	ReasoningEffort string `json:"reasoning_effort,omitempty"`
	LastUsed        int64  `json:"last_used"`
}

type ModelTypes

type ModelTypes struct {
	Models []ModelInfo `json:"models"`
	Recent []ModelInfo `json:"recent_models"`
}

type Request

type Request struct {
	Images   [][]byte `json:"images"`
	Mentions []string `json:"mentions"`
}

Jump to

Keyboard shortcuts

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