fix: widen /model key masking
parent
5163886694
commit
ce68d82dfa
|
|
@ -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 (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue