From a95ae45e18fdee005b7e09ec93d02ea31857ee6b Mon Sep 17 00:00:00 2001 From: KoalaTrapLord Date: Thu, 19 Mar 2026 00:05:33 -0400 Subject: [PATCH] fix: remove API key prefix exposure from /api/pplx/status endpoint --- frontend/commander-ai-lab-ui/src/types/index.ts | 1 - lab_api_backup.py | 1 - lab_api_new.py | 1 - routes/deckgen.py | 1 - 4 files changed, 4 deletions(-) diff --git a/frontend/commander-ai-lab-ui/src/types/index.ts b/frontend/commander-ai-lab-ui/src/types/index.ts index be14c52..0ef7a1e 100644 --- a/frontend/commander-ai-lab-ui/src/types/index.ts +++ b/frontend/commander-ai-lab-ui/src/types/index.ts @@ -559,5 +559,4 @@ export interface CommanderSearchResult { export interface PplxStatus { configured: boolean - key_prefix: string } diff --git a/lab_api_backup.py b/lab_api_backup.py index 65f683e..96c2cab 100644 --- a/lab_api_backup.py +++ b/lab_api_backup.py @@ -6945,7 +6945,6 @@ async def pplx_status(): """Check if Perplexity API is configured.""" return { 'configured': bool(CFG.pplx_api_key), - 'key_prefix': CFG.pplx_api_key[:8] + '...' if CFG.pplx_api_key else '', } diff --git a/lab_api_new.py b/lab_api_new.py index 61fdb28..1539b28 100644 --- a/lab_api_new.py +++ b/lab_api_new.py @@ -2560,7 +2560,6 @@ async def pplx_status(): """Check if Perplexity API is configured.""" return { 'configured': bool(CFG.pplx_api_key), - 'key_prefix': CFG.pplx_api_key[:8] + '...' if CFG.pplx_api_key else '', } diff --git a/routes/deckgen.py b/routes/deckgen.py index a3cd4d4..3cad023 100644 --- a/routes/deckgen.py +++ b/routes/deckgen.py @@ -1224,7 +1224,6 @@ async def pplx_status(): """Check if Perplexity API is configured.""" return { 'configured': bool(CFG.pplx_api_key), - 'key_prefix': CFG.pplx_api_key[:8] + '...' if CFG.pplx_api_key else '', }