MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / cfgWith

Function cfgWith

test/vision-config.test.ts:71–77  ·  view source on GitHub ↗
(defaults: any, sub?: any)

Source from the content-addressed store, hash-verified

69 afterEach(() => { delete process.env[KEY]; });
70
71 const cfgWith = (defaults: any, sub?: any) => ({
72 defaults,
73 roles: sub ? { subagent: sub } : undefined,
74 providers: { custom: [
75 { name: 'gemini', apiKeyEnv: KEY, baseUrl: 'https://generativelanguage.googleapis.com/v1beta/openai/' },
76 ] },
77 });
78
79 it('routes vision to a vision-capable PRIMARY served by a custom API', () => {
80 process.env[KEY] = 'k-123';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected