Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@empiricalrun/llm

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empiricalrun/llm - npm Package Compare versions

Comparing version 0.9.21 to 0.9.22

6

CHANGELOG.md
# @empiricalrun/llm
## 0.9.22
### Patch Changes
- 557324f: fix: langfuse token calculation for cost
## 0.9.21

@@ -4,0 +10,0 @@

11

dist/index.js

@@ -86,3 +86,2 @@ "use strict";

const output = completion?.choices[0]?.message;
generation?.end({ output });
if (completion && !completion.usage?.total_tokens) {

@@ -94,2 +93,12 @@ console.warn("No usage.total_tokens in completion");

this._usedTokens += completion?.usage?.total_tokens || 0;
generation?.end({
output,
usage: this.completionTokens && this.promptTokens
? {
input: this.promptTokens,
output: this.completionTokens,
unit: "TOKENS",
}
: undefined,
});
return output;

@@ -96,0 +105,0 @@ }

2

package.json
{
"name": "@empiricalrun/llm",
"version": "0.9.21",
"version": "0.9.22",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc