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

gpt-tokens

Package Overview
Dependencies
Maintainers
1
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.3 to 1.3.4

2

dist/index.d.ts

@@ -9,3 +9,3 @@ import { Tiktoken } from 'js-tiktoken';

*/
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';
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';
interface MessageItem {

@@ -12,0 +12,0 @@ name?: string;

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

'gpt-4-turbo-preview': 'gpt-4-0125-preview',
'gpt-4-turbo': 'gpt-4-turbo-2024-04-09',
};

@@ -31,2 +32,3 @@ /**

Pricing.incrementalModels = {
'gpt-4-turbo-2024-04-09': [0.01, 0.03], // 2024-04-09
'gpt-4-0314': [0.03, 0.06], // 2023-03-14

@@ -33,0 +35,0 @@ 'gpt-4-32k-0314': [0.06, 0.12], // 2023-03-14

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

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

@@ -36,2 +36,4 @@ # gpt-tokens

* gpt-4-turbo-preview
* gpt-4-turbo-2024-04-09
* gpt-4-turbo

@@ -38,0 +40,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