We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e526b commit 977b3e3Copy full SHA for 977b3e3
‎packages/baseai/src/dev/routes/beta/pipes/run.ts
@@ -115,7 +115,15 @@ const handleGenerateError = (c: any, error: unknown) => {
115
const handleRun = async (c: any) => {
116
try {
117
const body = await c.req.json();
118
- logger('pipe.request', body, 'Pipe Request Body');
+
119
+ const llmKey = (body.llmApiKey as string) || '';
120
+ const hiddenChars = new Array(45).fill('*').join('');
121
+ const redactedKey = llmKey.length
122
+ ? llmKey.slice(0, 8) + hiddenChars
123
+ : '';
124
125
+ const logData = { ...body, llmApiKey: redactedKey };
126
+ logger('pipe.request', logData, 'Pipe Request Body');
127
128
const validatedBody = validateRequestBody(body);
129
0 commit comments