mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
* Update OpenAI models * Sort OpenAI models by created timestamp in ascending order * Update OpenAI models price * uncheck fallback listing (even if old) closes #2261 * linting --------- Co-authored-by: Yaner <1468275133@qq.com>
This commit is contained in:
parent
c612239ecb
commit
43b6ece0a5
@ -9,10 +9,22 @@ const { RetryError } = require("../error.js");
|
||||
class OpenAIProvider extends Provider {
|
||||
model;
|
||||
static COST_PER_TOKEN = {
|
||||
"gpt-3.5-turbo": {
|
||||
input: 0.0015,
|
||||
output: 0.002,
|
||||
},
|
||||
"gpt-3.5-turbo-16k": {
|
||||
input: 0.003,
|
||||
output: 0.004,
|
||||
},
|
||||
"gpt-4": {
|
||||
input: 0.03,
|
||||
output: 0.06,
|
||||
},
|
||||
"gpt-4-turbo": {
|
||||
input: 0.01,
|
||||
output: 0.03,
|
||||
},
|
||||
"gpt-4o": {
|
||||
input: 0.005,
|
||||
output: 0.015,
|
||||
@ -21,13 +33,9 @@ class OpenAIProvider extends Provider {
|
||||
input: 0.06,
|
||||
output: 0.12,
|
||||
},
|
||||
"gpt-3.5-turbo": {
|
||||
input: 0.0015,
|
||||
output: 0.002,
|
||||
},
|
||||
"gpt-3.5-turbo-16k": {
|
||||
input: 0.003,
|
||||
output: 0.004,
|
||||
"gpt-4o-mini": {
|
||||
input: 0.00015,
|
||||
output: 0.0006,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user