( configPath: string, )
| 113 | } |
| 114 | |
| 115 | function readServerTelemetryConfig( |
| 116 | configPath: string, |
| 117 | ): Pick<KimiConfig, 'telemetry' | 'defaultModel'> { |
| 118 | try { |
| 119 | const { config, fileError } = loadRuntimeConfigSafe(configPath); |
| 120 | // A broken config fails the server on its own inside KimiCore; for |
| 121 | // telemetry just degrade to "enabled, no model" so we never block startup. |
| 122 | if (fileError !== undefined) return {}; |
| 123 | return config; |
| 124 | } catch { |
| 125 | return {}; |
| 126 | } |
| 127 | } |
no test coverage detected