gpt-tokens
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20907
384
173