fix: widen /model key masking
This commit is contained in:
@@ -46,8 +46,8 @@ const SYSTEM_MARK = "⚙️";
|
|||||||
const maskApiKey = (value: string): string => {
|
const maskApiKey = (value: string): string => {
|
||||||
const trimmed = value.trim();
|
const trimmed = value.trim();
|
||||||
if (!trimmed) return "missing";
|
if (!trimmed) return "missing";
|
||||||
if (trimmed.length <= 12) return trimmed;
|
if (trimmed.length <= 16) return trimmed;
|
||||||
return `${trimmed.slice(0, 6)}...${trimmed.slice(-6)}`;
|
return `${trimmed.slice(0, 8)}...${trimmed.slice(-8)}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const resolveAuthLabel = async (
|
const resolveAuthLabel = async (
|
||||||
|
|||||||
Reference in New Issue
Block a user