Skip to content
Snippets Groups Projects
Unverified Commit 43b6ece0 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Update OpenAI models and prices #2261 (#2269)


* 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: default avatarYaner <1468275133@qq.com>
parent c612239e
No related branches found
No related tags found
No related merge requests found
......@@ -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,
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment