chore: format
This commit is contained in:
@@ -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