New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gpt-tokens

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpt-tokens - npm Package Compare versions

Comparing version

to
1.3.14

2

dist/index.js

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

case 'o1':
case 'o3-mini-2025-01-31':
case 'o3-mini':
case 'gpt-4o-2024-11-20':

@@ -23,0 +25,0 @@ jsTikTokenSupportModel = 'gpt-4o';

2

dist/pricing.d.ts

@@ -1,2 +0,2 @@

export type supportModelType = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-4' | 'gpt-4-32k' | 'gpt-4-turbo-preview' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-4-1106-preview' | 'gpt-4-0125-preview' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'o1' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'chatgpt-4o-latest';
export type supportModelType = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-4' | 'gpt-4-32k' | 'gpt-4-turbo-preview' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-4-1106-preview' | 'gpt-4-0125-preview' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-11-20' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'o1' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'chatgpt-4o-latest' | 'o3-mini' | 'o3-mini-2025-01-31';
/**

@@ -3,0 +3,0 @@ * Pricing

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

'o1-mini': 'o1-mini-2024-09-12',
'o3-mini': 'o3-mini-2025-01-31',
};

@@ -37,5 +38,6 @@ /**

Pricing.incrementalModels = {
'o3-mini-2025-01-31': [0.0011, 0.0044], // 2025-01-31
'o1': [0.015, 0.06], // 2024-12-18
'o1-preview-2024-09-12': [0.015, 0.06], // 2024-09-12
'o1-mini-2024-09-12': [0.003, 0.012], // 2024-09-12
'o1-mini-2024-09-12': [0.0011, 0.0044], // 2024-09-12
'gpt-4o-2024-05-13': [0.005, 0.015], // 2024-05-13

@@ -42,0 +44,0 @@ 'gpt-4o-2024-08-06': [0.0025, 0.010], // 2024-08-06

{
"name": "gpt-tokens",
"version": "1.3.13",
"version": "1.3.14",
"description": "Calculate the token consumption and amount of openai gpt message",

@@ -5,0 +5,0 @@ "keywords": [

@@ -49,2 +49,3 @@ # gpt-tokens

* o1-mini-2024-09-12
* o3-mini
* chatgpt-4o-latest

@@ -51,0 +52,0 @@