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

gpt-tokens

Package Overview
Dependencies
Maintainers
0
Versions
30
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 1.3.10 to 1.3.11

10

dist/index.js

@@ -16,6 +16,8 @@ "use strict";

// Enabled when TiktokenModel support type is not included (like gpt-4o)
// case 'gpt-4o-mini':
// case 'gpt-4o-mini-2024-07-18':
// jsTikTokenSupportModel = 'gpt-4o'
// break
case 'o1-preview':
case "o1-preview-2024-09-12":
case "o1-mini":
case "o1-mini-2024-09-12":
jsTikTokenSupportModel = 'gpt-4o';
break;
default:

@@ -22,0 +24,0 @@ jsTikTokenSupportModel = model;

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-mini' | 'gpt-4o-mini-2024-07-18';
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-mini" | "gpt-4o-mini-2024-07-18" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12";
/**

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

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

'gpt-4o-mini': 'gpt-4o-mini-2024-07-18',
'o1-preview': 'o1-preview-2024-09-12',
'o1-mini': 'o1-mini-2024-09-12',
};

@@ -34,2 +36,4 @@ /**

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

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

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

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

@@ -21,2 +21,6 @@ # gpt-tokens

* gpt-3.5-turbo
* gpt-3.5-turbo-16k
* gpt-4
* gpt-4-32k
* gpt-4-turbo-preview
* gpt-3.5-turbo-0301

@@ -26,13 +30,9 @@ * gpt-3.5-turbo-0613

* gpt-3.5-turbo-0125
* gpt-3.5-turbo-16k
* gpt-3.5-turbo-16k-0613
* gpt-4
* gpt-4-0314
* gpt-4-0613
* gpt-4-32k (Not tested)
* gpt-4-32k-0314 (Not tested)
* gpt-4-32k-0613 (Not tested)
* gpt-4-32k-0314
* gpt-4-32k-0613
* gpt-4-1106-preview
* gpt-4-0125-preview
* gpt-4-turbo-preview
* gpt-4-turbo-2024-04-09

@@ -45,2 +45,6 @@ * gpt-4-turbo

* gpt-4o-mini-2024-07-18
* o1-preview
* o1-preview-2024-09-12
* o1-mini
* o1-mini-2024-09-12

@@ -47,0 +51,0 @@ ### Fine Tune Models

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