Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ NewOpenAIProvider
Function
NewOpenAIProvider
aibridge/api.go:52–54 ·
view source on GitHub ↗
(cfg config.OpenAI)
Source
from the content-addressed store, hash-verified
50
}
51
52
func
NewOpenAIProvider(cfg config.OpenAI) provider.Provider {
53
return
provider.NewOpenAI(cfg)
54
}
55
56
func
NewCopilotProvider(cfg config.Copilot) provider.Provider {
57
return
provider.NewCopilot(cfg)
Callers
11
TestPoolReplaceProvidersClearsCacheAndUsesNewProviders
Function · 0.92
TestPoolReplaceProvidersDoesNotJoinStaleSingleflight
Function · 0.92
TestPoolReplaceProvidersAfterShutdownIsNoop
Function · 0.92
buildAIProviderFromRow
Function · 0.92
TestValidateProviders
Function · 0.92
TestPassthroughRoutesForProviders
Function · 0.92
TestRequestBodySizeLimit
Function · 0.92
TestDisabledProviderHandler
Function · 0.92
TestIntegration
Function · 0.92
TestIntegrationWithMetrics
Function · 0.92
TestIntegrationCircuitBreaker
Function · 0.92
Calls
1
NewOpenAI
Function · 0.92
Tested by
10
TestPoolReplaceProvidersClearsCacheAndUsesNewProviders
Function · 0.74
TestPoolReplaceProvidersDoesNotJoinStaleSingleflight
Function · 0.74
TestPoolReplaceProvidersAfterShutdownIsNoop
Function · 0.74
TestValidateProviders
Function · 0.74
TestPassthroughRoutesForProviders
Function · 0.74
TestRequestBodySizeLimit
Function · 0.74
TestDisabledProviderHandler
Function · 0.74
TestIntegration
Function · 0.74
TestIntegrationWithMetrics
Function · 0.74
TestIntegrationCircuitBreaker
Function · 0.74