graphlit-client 1.0.20250701001 → 1.0.20250701002
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,9 +132,8 @@ onEvent, onComplete, abortSignal) {
|
|
132
132
|
if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
|
133
133
|
console.log(`⏱️ [OpenAI] Starting LLM call at: ${new Date().toISOString()}`);
|
134
134
|
}
|
135
|
-
const stream = await openaiClient.chat.completions.create({
|
136
|
-
|
137
|
-
...(abortSignal && { signal: abortSignal }),
|
135
|
+
const stream = await openaiClient.chat.completions.create(streamConfig, {
|
136
|
+
signal: abortSignal,
|
138
137
|
});
|
139
138
|
for await (const chunk of stream) {
|
140
139
|
const delta = chunk.choices[0]?.delta;
|