ai

package
v1.801.390 Latest Latest
Warning

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

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

Documentation

Overview

Package ai is Hanzo AI — the model API on /v1 (/v1/chat/completions, /v1/messages, /v1/models and the rest of hanzoai/ai's surface) — mounted into a cloud binary with the money, ingest and telemetry callbacks cloud BUILDS but cannot INSTALL.

It cannot live in package cloud — github.com/hanzoai/ai imports github.com/hanzoai/cloud, so that direction is an import cycle. It lived in package apps for that reason, and the cost was that the composition root's ai entry named an apps-local helper: plugin/gen-app-cmds can only emit a package-qualified expression, so ai got the fat stub (every subsystem linked) and NO manifest row — which is why the light host 404'd /v1/chat/completions. A sibling package that imports both the module and cloud is legal and is all this needs to be.

The module is aliased because this package is also called ai: unaliased, `return ai.Mount(...)` inside `func Mount` reads as recursion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(app *zip.App, deps cloud.Deps) error

Mount installs the money, ingest and telemetry wiring, then mounts ai. A nil callback is left alone — cloud leaves one nil exactly when that subsystem isn't co-resident, and the module's own fallback applies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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