Exposes self-hosted n8n chat agents behind /v1/chat/completions and /v1/models. Model -> n8n webhook routing via a GenServer registry, so multiple agents map to multiple models. Plug + Bandit, req for the n8n webhook call, Bearer auth (ADAPTER_API_KEY). Ships a flake.nix (beamPackages.mixRelease) so it can be consumed as a NixOS flake input.
6 lines
198 B
Elixir
6 lines
198 B
Elixir
import Config
|
|
|
|
# Production: no hardcoded values here. All runtime config (PORT, AGENTS,
|
|
# ADAPTER_API_KEY, CHAT_WEBHOOK_BASIC) comes from the systemd EnvironmentFile
|
|
# in the NixOS service module.
|