mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
filter API key providers by key method
This commit is contained in:
1 parent
8156c76d96
commit
742a5076fe
1 file changed
+5
-1
@@ -166,7 +166,11 @@ export function ProviderSettings() {
|
||||
}, [providerEntries])
|
||||
|
||||
const apiKeyProviders = useMemo(() => {
|
||||
const nonOAuthProviders = providerEntries.filter((provider) => !supportsOAuthMethods(provider.methods))
|
||||
const nonOAuthProviders = providerEntries.filter(
|
||||
(provider) =>
|
||||
!supportsOAuthMethods(provider.methods) &&
|
||||
provider.methods.some((method) => method.type === 'key'),
|
||||
)
|
||||
return {
|
||||
connected: nonOAuthProviders.filter((provider) => provider.connected),
|
||||
available: nonOAuthProviders.filter((provider) => !provider.connected),
|
||||
|
||||
Reference in new issue
Block a user