mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
refactor: move aibridged out of enterprise to AGPL (#25570)
In order to allow Coder Agents to use AI Gateway in OSS, we need to rehome the `aibridged`\-related code into the AGPL path. The HTTP API is only registered under enterprise so will still require the AI Governance Add-on to be present in order to use it, whereas Coder Agents uses an in-memory pipe to the same handlers.
This commit is contained in:
@@ -2198,6 +2198,10 @@ type API struct {
|
||||
// UsageInserter is a pointer to an atomic pointer because it is passed to
|
||||
// multiple components.
|
||||
UsageInserter *atomic.Pointer[usage.Inserter]
|
||||
// aibridgedHandler is the in-memory aibridge HTTP handler. Set by
|
||||
// RegisterInMemoryAIBridgedHTTPHandler; read by the enterprise
|
||||
// /api/v2/aibridge route (license-gated).
|
||||
aibridgedHandler http.Handler
|
||||
|
||||
UpdatesProvider tailnet.WorkspaceUpdatesProvider
|
||||
|
||||
|
||||
Reference in New Issue
Block a user