adjusts prompt logging to truncate huge prompts from the end

This commit is contained in:
nai-degen 2023-11-11 20:14:32 -06:00
parent 5db07404f2
commit 3ea23760c3
1 changed files with 2 additions and 2 deletions

View File

@ -256,8 +256,8 @@ export const appendBatch = async (batch: PromptLogEntry[]) => {
return [
entry.model,
entry.endpoint,
entry.promptRaw.slice(0, 50000),
entry.promptFlattened.slice(0, 50000),
entry.promptRaw.slice(-50000),
entry.promptFlattened.slice(-50000),
entry.response.slice(0, 50000),
];
});