(
providerName: string | undefined,
oauthRef?: OAuthRef | undefined,
)
| 306 | } |
| 307 | |
| 308 | private runtimeOAuthRef( |
| 309 | providerName: string | undefined, |
| 310 | oauthRef?: OAuthRef | undefined, |
| 311 | ): OAuthRef | undefined { |
| 312 | if ((providerName ?? KIMI_CODE_PROVIDER_NAME) !== KIMI_CODE_PROVIDER_NAME) return oauthRef; |
| 313 | const auth = this.resolveManagedAuth(providerName); |
| 314 | return resolveKimiCodeRuntimeAuth({ |
| 315 | configuredBaseUrl: auth.baseUrl, |
| 316 | configuredOAuthRef: oauthRef ?? auth.oauthRef, |
| 317 | }).oauthRef; |
| 318 | } |
| 319 | } |
no test coverage detected