( oauthRef: ManagedKimiOAuthRefInput | undefined, )
| 281 | } |
| 282 | |
| 283 | function configuredOAuthRef( |
| 284 | oauthRef: ManagedKimiOAuthRefInput | undefined, |
| 285 | ): ManagedKimiOAuthRef | undefined { |
| 286 | if (oauthRef === undefined) return undefined; |
| 287 | const key = oauthRef.key; |
| 288 | if (key === undefined) return undefined; |
| 289 | return managedOAuthRef({ |
| 290 | storage: oauthRef.storage, |
| 291 | key, |
| 292 | oauthHost: oauthRef.oauthHost, |
| 293 | }); |
| 294 | } |
| 295 | |
| 296 | export function kimiCodeEnvBaseUrl(env: ManagedKimiEnv = process.env): string | undefined { |
| 297 | return env.KIMI_CODE_BASE_URL; |
no test coverage detected