chore: format
This commit is contained in:
1 parent
08398e511e
commit
1902d4238b
12 files changed
+81679
-38
No files matched your search
@@ -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 };
|
||||
|
||||
Reference in new issue
Block a user