🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

190proof

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

190proof - npm Package Compare versions

Comparing version
1.0.86
to
1.0.87
+7
-0
dist/index.d.mts

@@ -34,2 +34,4 @@ declare enum ClaudeModel {

LLAMA_3_70B_8192 = "llama3-70b-8192",
LLAMA_3_3_70B_VERSATILE = "llama-3.3-70b-versatile",
QWEN3_32B = "qwen/qwen3-32b",
DEEPSEEK_R1_DISTILL_LLAMA_70B = "deepseek-r1-distill-llama-70b"

@@ -66,2 +68,7 @@ }

files: File[];
usage: {
prompt_tokens: number;
completion_tokens: number;
total_tokens: number;
} | null;
}

@@ -68,0 +75,0 @@ interface FunctionCall {

@@ -34,2 +34,4 @@ declare enum ClaudeModel {

LLAMA_3_70B_8192 = "llama3-70b-8192",
LLAMA_3_3_70B_VERSATILE = "llama-3.3-70b-versatile",
QWEN3_32B = "qwen/qwen3-32b",
DEEPSEEK_R1_DISTILL_LLAMA_70B = "deepseek-r1-distill-llama-70b"

@@ -66,2 +68,7 @@ }

files: File[];
usage: {
prompt_tokens: number;
completion_tokens: number;
total_tokens: number;
} | null;
}

@@ -68,0 +75,0 @@ interface FunctionCall {

+29
-6

@@ -77,2 +77,4 @@ "use strict";

GroqModel2["LLAMA_3_70B_8192"] = "llama3-70b-8192";
GroqModel2["LLAMA_3_3_70B_VERSATILE"] = "llama-3.3-70b-versatile";
GroqModel2["QWEN3_32B"] = "qwen/qwen3-32b";
GroqModel2["DEEPSEEK_R1_DISTILL_LLAMA_70B"] = "deepseek-r1-distill-llama-70b";

@@ -204,3 +206,4 @@ return GroqModel2;

function_calls: functionCalls,
files: []
files: [],
usage: null
};

@@ -485,3 +488,8 @@ }

function_calls: functionCalls,
files: []
files: [],
usage: data.usage ? {
prompt_tokens: data.usage.prompt_tokens,
completion_tokens: data.usage.completion_tokens,
total_tokens: data.usage.total_tokens
} : null
};

@@ -720,3 +728,8 @@ }

function_calls: functionCalls,
files: []
files: [],
usage: data.usage ? {
prompt_tokens: data.usage.input_tokens,
completion_tokens: data.usage.output_tokens,
total_tokens: data.usage.input_tokens + data.usage.output_tokens
} : null
};

@@ -813,3 +826,3 @@ }

async function callGoogleAI(id, payload) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
const googleMessages = jigGoogleMessages(payload.messages);

@@ -878,3 +891,8 @@ const history = googleMessages.slice(0, -1);

function_call: (functionCalls == null ? void 0 : functionCalls[0]) || null,
function_calls: functionCalls || []
function_calls: functionCalls || [],
usage: response.usageMetadata ? {
prompt_tokens: (_g = response.usageMetadata.promptTokenCount) != null ? _g : 0,
completion_tokens: (_h = response.usageMetadata.candidatesTokenCount) != null ? _h : 0,
total_tokens: (_i = response.usageMetadata.totalTokenCount) != null ? _i : 0
} : null
};

@@ -1009,3 +1027,8 @@ }

function_calls: functionCalls,
files: []
files: [],
usage: response.data.usage ? {
prompt_tokens: response.data.usage.prompt_tokens,
completion_tokens: response.data.usage.completion_tokens,
total_tokens: response.data.usage.total_tokens
} : null
};

@@ -1012,0 +1035,0 @@ }

@@ -45,2 +45,4 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {

GroqModel2["LLAMA_3_70B_8192"] = "llama3-70b-8192";
GroqModel2["LLAMA_3_3_70B_VERSATILE"] = "llama-3.3-70b-versatile";
GroqModel2["QWEN3_32B"] = "qwen/qwen3-32b";
GroqModel2["DEEPSEEK_R1_DISTILL_LLAMA_70B"] = "deepseek-r1-distill-llama-70b";

@@ -175,3 +177,4 @@ return GroqModel2;

function_calls: functionCalls,
files: []
files: [],
usage: null
};

@@ -456,3 +459,8 @@ }

function_calls: functionCalls,
files: []
files: [],
usage: data.usage ? {
prompt_tokens: data.usage.prompt_tokens,
completion_tokens: data.usage.completion_tokens,
total_tokens: data.usage.total_tokens
} : null
};

@@ -691,3 +699,8 @@ }

function_calls: functionCalls,
files: []
files: [],
usage: data.usage ? {
prompt_tokens: data.usage.input_tokens,
completion_tokens: data.usage.output_tokens,
total_tokens: data.usage.input_tokens + data.usage.output_tokens
} : null
};

@@ -784,3 +797,3 @@ }

async function callGoogleAI(id, payload) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
const googleMessages = jigGoogleMessages(payload.messages);

@@ -849,3 +862,8 @@ const history = googleMessages.slice(0, -1);

function_call: (functionCalls == null ? void 0 : functionCalls[0]) || null,
function_calls: functionCalls || []
function_calls: functionCalls || [],
usage: response.usageMetadata ? {
prompt_tokens: (_g = response.usageMetadata.promptTokenCount) != null ? _g : 0,
completion_tokens: (_h = response.usageMetadata.candidatesTokenCount) != null ? _h : 0,
total_tokens: (_i = response.usageMetadata.totalTokenCount) != null ? _i : 0
} : null
};

@@ -980,3 +998,8 @@ }

function_calls: functionCalls,
files: []
files: [],
usage: response.data.usage ? {
prompt_tokens: response.data.usage.prompt_tokens,
completion_tokens: response.data.usage.completion_tokens,
total_tokens: response.data.usage.total_tokens
} : null
};

@@ -983,0 +1006,0 @@ }

+1
-1
{
"name": "190proof",
"version": "1.0.86",
"version": "1.0.87",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -248,3 +248,9 @@ # 190proof

function_call: FunctionCall | null;
function_calls: FunctionCall[];
files: File[]; // For models that return files (e.g., image generation)
usage: {
prompt_tokens: number;
completion_tokens: number;
total_tokens: number;
} | null; // null when streaming
}

@@ -251,0 +257,0 @@ ```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display