Redact credentials on the way into a stored chat
A stored transcript is replayed into a later prompt when reopened, so a key typed while changing a setting would be handed back to the model on every subsequent turn.
This commit is contained in:
@@ -162,7 +162,7 @@ if ($profile === 'chat') {
|
||||
if ($to !== '' && $to !== $profile) {
|
||||
$profile = $to;
|
||||
$escalated = true;
|
||||
wlog('handoff chat -> ' . $to . ': ' . mb_substr($question, 0, 80));
|
||||
wlog('handoff chat -> ' . $to . ': ' . mb_substr(vv_ai_redact($question), 0, 80));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user