api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package api serves the OpenAI-compatible HTTP surface (/v1/...).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler implements the /v1 endpoints.

func New

func New(svc *core.Service, log *slog.Logger) *Handler

New creates the API handler.

func (*Handler) Register

func (h *Handler) Register(mux *http.ServeMux)

Register mounts the routes on mux.

Jump to

Keyboard shortcuts

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