MCPcopy
hub / github.com/anomalyco/opencode / providerConfig

Function providerConfig

packages/opencode/test/provider/header-timeout.test.ts:174–185  ·  view source on GitHub ↗
(url: string, options: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

172)
173
174function providerConfig(url: string, options: Record<string, unknown> = {}) {
175 const config = testProviderConfig(url)
176 return {
177 ...config,
178 provider: {
179 test: {
180 ...config.provider.test,
181 options: { ...config.provider.test.options, ...options },
182 },
183 },
184 }
185}
186
187async function delayedHeaderServer(delay: number): Promise<{ server: Server; url: string }> {
188 const server = createServer((_, res) => {

Callers 1

Calls 1

testProviderConfigFunction · 0.90

Tested by

no test coverage detected