chatui

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package chatui provides a web-based chat interface for interacting with LLM models through Starport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title      string
	Theme      string
	APIBaseURL string
}

Config holds ChatUI-specific configuration.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler provides HTTP handlers for the ChatUI interface.

func NewHandler

func NewHandler(logger *zerolog.Logger, config Config) (*Handler, error)

NewHandler creates a new ChatUI handler.

func (*Handler) Index

func (h *Handler) Index(w http.ResponseWriter, _ *http.Request)

Index serves the main ChatUI page.

func (*Handler) Routes

func (h *Handler) Routes() chi.Router

Routes returns a chi router with all ChatUI routes.

func (*Handler) Static

func (h *Handler) Static(w http.ResponseWriter, r *http.Request)

Static serves static assets.

Jump to

Keyboard shortcuts

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