chore: format

This commit is contained in:
Timothy Jaeryang Baek
2024-12-17 13:51:29 -08:00
parent 08398e511e
commit 1902d4238b
12 changed files with 81679 additions and 38 deletions
+1 -3
View File
@@ -84,7 +84,7 @@ async function* openAIStreamToIterator(
yield {
done: false,
value: parsedData.choices?.[0]?.delta?.content ?? '',
value: parsedData.choices?.[0]?.delta?.content ?? ''
};
} catch (e) {
console.error('Error extracting delta from SSE event:', e);
@@ -120,8 +120,6 @@ async function* streamLargeDeltasAsRandomChunks(
continue;
}
let content = textStreamUpdate.value;
if (content.length < 5) {
yield { done: false, value: content };