MCPcopy Create free account
hub / github.com/coder/aibridge / withCustomProvider

Function withCustomProvider

internal/integrationtest/setupbridge.go:98–104  ·  view source on GitHub ↗

withCustomProvider adds a pre-built provider. The upstream URL passed to [newBridgeTestServer] is ignored for this provider. When any provider option is used, the default "all providers" set is not created.

(p aibridge.Provider)

Source from the content-addressed store, hash-verified

96// [newBridgeTestServer] is ignored for this provider.
97// When any provider option is used, the default "all providers" set is not created.
98func withCustomProvider(p aibridge.Provider) bridgeOption {
99 return func(c *bridgeConfig) {
100 c.providerBuilders = append(c.providerBuilders, func(string) aibridge.Provider {
101 return p
102 })
103 }
104}
105
106// withMetrics sets the Prometheus metrics for the bridge.
107func withMetrics(m *metrics.Metrics) bridgeOption {

Calls

no outgoing calls