diff --git a/core/llm/llms/stubs/ContinueProxy.ts b/core/llm/llms/stubs/ContinueProxy.ts index 181db2abd..c723eb07f 100644 --- a/core/llm/llms/stubs/ContinueProxy.ts +++ b/core/llm/llms/stubs/ContinueProxy.ts @@ -1,4 +1,8 @@ -import { ContinueProperties } from "@continuedev/config-yaml"; +import { + ContinueProperties, + decodeSecretLocation, + SecretType, +} from "@continuedev/config-yaml"; import { ControlPlaneProxyInfo } from "../../../control-plane/analytics/IAnalyticsProvider.js"; import { Telemetry } from "../../../util/posthog.js"; @@ -49,6 +53,18 @@ class ContinueProxy extends OpenAI { }; } + isProperlyConfigured(): boolean { + if (!this.apiKeyLocation) { + return true; + } + const secretLocation = decodeSecretLocation(this.apiKeyLocation); + if (secretLocation.secretType === SecretType.NotFound) { + return false; + } + + return true; + } + protected _getHeaders() { const headers: any = super._getHeaders(); headers["x-continue-unique-id"] = Telemetry.uniqueId;