(baseUrl: string | undefined)
| 241 | } |
| 242 | |
| 243 | function defaultBaseUrl(baseUrl: string | undefined): string { |
| 244 | return (baseUrl ?? kimiCodeBaseUrl()).replace(/\/+$/, ''); |
| 245 | } |
| 246 | |
| 247 | function normalizeBaseUrl(baseUrl: string): string { |
| 248 | return baseUrl.replace(/\/+$/, ''); |
no test coverage detected