@pithosai/pithosai 1.0.2 → 1.0.3

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.
@@ -1,28 +0,0 @@
1
- diff --git a/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js b/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js
2
- index 3b57cd2..3227351 100644
3
- --- a/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js
4
- +++ b/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js
5
- @@ -91,7 +91,7 @@ export const streamOpenAICompletions = (model, context, options) => {
6
- });
7
- }
8
- else if (block.type === "toolCall") {
9
- - block.arguments = JSON.parse(block.partialArgs || "{}");
10
- + block.arguments = parseStreamingJson(block.partialArgs || "{}");
11
- delete block.partialArgs;
12
- stream.push({
13
- type: "toolcall_end",
14
- diff --git a/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js b/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js
15
- index e2c148c..00c5801 100644
16
- --- a/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js
17
- +++ b/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js
18
- @@ -358,8 +358,8 @@ export async function processResponsesStream(openaiStream, output, stream, model
19
- }
20
- else if (item.type === "function_call") {
21
- const args = currentBlock?.type === "toolCall" && currentBlock.partialJson
22
- - ? JSON.parse(currentBlock.partialJson)
23
- - : JSON.parse(item.arguments);
24
- + ? parseStreamingJson(currentBlock.partialJson)
25
- + : parseStreamingJson(item.arguments || "{}");
26
- const toolCall = {
27
- type: "toolCall",
28
- id: `${item.call_id}|${item.id}`,