gpt-tokens
Advanced tools
Comparing version 1.3.12 to 1.3.13
@@ -20,5 +20,6 @@ "use strict"; | ||
// case 'o1-mini-2024-09-12': | ||
// case 'chatgpt-4o-latest': | ||
// jsTikTokenSupportModel = 'gpt-4o' | ||
// break | ||
case 'o1': | ||
case 'gpt-4o-2024-11-20': | ||
jsTikTokenSupportModel = 'gpt-4o'; | ||
break; | ||
default: | ||
@@ -25,0 +26,0 @@ jsTikTokenSupportModel = model; |
@@ -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' | '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'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Pricing |
@@ -36,2 +36,3 @@ "use strict"; | ||
Pricing.incrementalModels = { | ||
'o1': [0.015, 0.06], // 2024-12-18 | ||
'o1-preview-2024-09-12': [0.015, 0.06], // 2024-09-12 | ||
@@ -41,2 +42,3 @@ 'o1-mini-2024-09-12': [0.003, 0.012], // 2024-09-12 | ||
'gpt-4o-2024-08-06': [0.0025, 0.010], // 2024-08-06 | ||
'gpt-4o-2024-11-20': [0.0025, 0.010], // 2024-11-20 | ||
'gpt-4o-mini-2024-07-18': [0.00015, 0.0006], // 2024-07-18 | ||
@@ -43,0 +45,0 @@ 'gpt-4-turbo-2024-04-09': [0.01, 0.03], // 2024-04-09 |
{ | ||
"name": "gpt-tokens", | ||
"version": "1.3.12", | ||
"version": "1.3.13", | ||
"description": "Calculate the token consumption and amount of openai gpt message", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -41,4 +41,6 @@ # gpt-tokens | ||
* gpt-4o-2024-08-06 | ||
* gpt-4o-2024-11-20 | ||
* gpt-4o-mini | ||
* gpt-4o-mini-2024-07-18 | ||
* o1 | ||
* o1-preview | ||
@@ -45,0 +47,0 @@ * o1-preview-2024-09-12 |
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
23009
417
185