snow-ai 0.3.19 → 0.3.20

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.
@@ -454,6 +454,10 @@ export async function* createStreamingAnthropicCompletion(options, abortSignal,
454
454
  total_tokens: 0,
455
455
  };
456
456
  }
457
+ // Update prompt_tokens if present in message_delta
458
+ if (event.usage.input_tokens !== undefined) {
459
+ usageData.prompt_tokens = event.usage.input_tokens;
460
+ }
457
461
  usageData.completion_tokens = event.usage.output_tokens || 0;
458
462
  usageData.total_tokens =
459
463
  usageData.prompt_tokens + usageData.completion_tokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Intelligent Command Line Assistant powered by AI",
5
5
  "license": "MIT",
6
6
  "bin": {