( profile: ProviderProfile, modeConfig: ProviderModeConfig, config?: ProviderConfig, )
| 1710 | |
| 1711 | const resolveAuthMode = ( |
| 1712 | profile: ProviderProfile, |
| 1713 | modeConfig: ProviderModeConfig, |
| 1714 | config?: ProviderConfig, |
| 1715 | ): AuthMode => { |
| 1716 | if (modeConfig.authMode) return modeConfig.authMode; |
| 1717 | if (profile.authMode) return profile.authMode; |
| 1718 | if (config && resolveProviderType(config) === "gemini") return "query-key"; |
| 1719 | return "bearer"; |
| 1720 | }; |
| 1721 | |
| 1722 | const applyAuthConfig = ( |
| 1723 | authMode: AuthMode, |
| 1724 | config: ProviderConfig, |
no test coverage detected