Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([sweep-provider-type-api-inline-checks-in-client]): consume PROVIDER_TYPES.API in isApiProvider

[._.]/ Adam Eivy44f0b8d5384d
diff --git a/client/src/utils/providers.js b/client/src/utils/providers.js
index 9c8e6642d0..f6fe83082d 100644
--- a/client/src/utils/providers.js
+++ b/client/src/utils/providers.js
@@ -42,9 +42,9 @@ export const isCliProvider = (provider) => provider?.type === PROVIDER_TYPES.CLI
/**
* Check if a provider is an HTTP-API provider (e.g. OpenAI, Anthropic, LM Studio),
* as opposed to a process-backed CLI/TUI agent. Use this anywhere you'd write
- * `provider.type === 'api'` against a saved provider.
+ * `provider.type === PROVIDER_TYPES.API` against a saved provider.
*/
-export const isApiProvider = (provider) => provider?.type === 'api';
+export const isApiProvider = (provider) => provider?.type === PROVIDER_TYPES.API;
/**
* Stable, module-scoped filter for `useProviderModels({ filter })` and other