MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / seedCatalogConfig

Function seedCatalogConfig

packages/server/test/config.e2e.test.ts:86–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86function seedCatalogConfig(): void {
87 seedConfig(
88 [
89 'default_model = "k2"',
90 '',
91 '[providers.kimi]',
92 'type = "kimi"',
93 'api_key = "sk-test"',
94 'base_url = "https://api.example.test/v1"',
95 '',
96 '[providers.openai]',
97 'type = "openai"',
98 '',
99 '[models.k2]',
100 'provider = "kimi"',
101 'model = "kimi-k2"',
102 'max_context_size = 131072',
103 '',
104 ].join('\n'),
105 );
106}
107
108describe('config routes', () => {
109 it('GET /config returns redacted config without api_key', async () => {

Callers 1

config.e2e.test.tsFile · 0.70

Calls 1

seedConfigFunction · 0.70

Tested by

no test coverage detected