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

Function writeValidConfig

apps/kimi-code/test/cli/doctor.test.ts:52–68  ·  view source on GitHub ↗
(path = join(dir, 'config.toml'))

Source from the content-addressed store, hash-verified

50}
51
52async function writeValidConfig(path = join(dir, 'config.toml')): Promise<void> {
53 await writeFile(
54 path,
55 `
56[providers.kimi]
57type = "kimi"
58base_url = "https://api.example.com/v1"
59api_key = "YOUR_API_KEY"
60
61[models.kimi]
62provider = "kimi"
63model = "kimi"
64max_context_size = 262144
65`,
66 'utf-8',
67 );
68}
69
70async function writeValidTuiConfig(path = join(dir, 'tui.toml')): Promise<void> {
71 await writeFile(

Callers 1

doctor.test.tsFile · 0.85

Calls 1

writeFileFunction · 0.50

Tested by

no test coverage detected