fix: remove API key prefix exposure from /api/pplx/status endpoint
This commit is contained in:
1 parent
ed255c1a21
commit
a95ae45e18
4 files changed
-4
No files matched your search
@@ -559,5 +559,4 @@ export interface CommanderSearchResult {
|
||||
|
||||
export interface PplxStatus {
|
||||
configured: boolean
|
||||
key_prefix: string
|
||||
}
|
||||
@@ -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 '',
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 '',
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 '',
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user