website

package
v0.0.0-...-f127942 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package website provides api and web ui for the chatbot.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebAPI

func WebAPI(cfg Config) http.Handler

Types

type Config

type Config struct {
	KRNEmbed   *kronk.Kronk
	KRNChat    *kronk.Kronk
	KRNTimeout time.Duration
	DB         *sql.DB
}

type Message

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

type Request

type Request struct {
	Messages        []Message `json:"messages"`
	Stream          bool      `json:"stream"`
	TopK            *int32    `json:"top_k"`
	TopP            *float32  `json:"top_p"`
	Temperature     *float32  `json:"temperature"`
	MaxTokens       *int      `json:"max_tokens"`
	Thinking        *string   `json:"enable_thinking"`
	ReasoningEffort *string   `json:"reasoning_effort"`
}

Jump to

Keyboard shortcuts

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