Skip to main content

Module gateway

Module gateway 

Source
Expand description

admin config gateway — edit the services gateway section (services/ai/gateway.yaml): enable state, routing patterns, and the default provider.

Every mutation resolves the resulting spec and validates it against the merged services provider registry, so a route or default-provider that names a provider absent from the registry fails at the edit rather than at the next boot. The gateway owns no catalog: providers and models live in services/ai/providers.yaml (see admin config catalog). The profile is never touched.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

RouteAddArgs

Enums§

DefaultProviderCommands
GatewayCommands
RouteCommands

Functions§

add_route
clear_default_provider
execute
remove_route
set_default_provider
set_enabled
spec_mut
validate_gateway