Skip to content

Commit 7845002

Browse files
Add deprecated OpenAI model prices back
1 parent 4d6b741 commit 7845002

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

openlayer/llm_monitors.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ class OpenAIMonitor:
104104
"input": 0.002e-3,
105105
"output": 0.002e-3,
106106
},
107+
"gpt-3.5-turbo": {
108+
"input": 0.0005e-3,
109+
"output": 0.0015e-3,
110+
},
107111
"gpt-3.5-turbo-0125": {
108112
"input": 0.0005e-3,
109113
"output": 0.0015e-3,
@@ -140,6 +144,10 @@ class OpenAIMonitor:
140144
"input": 0.01e-3,
141145
"output": 0.03e-3,
142146
},
147+
"gpt-4-0314": {
148+
"input": 0.03e-3,
149+
"output": 0.06e-3,
150+
},
143151
"gpt-4-1106-vision-preview": {
144152
"input": 0.01e-3,
145153
"output": 0.03e-3,
@@ -148,6 +156,10 @@ class OpenAIMonitor:
148156
"input": 0.06e-3,
149157
"output": 0.12e-3,
150158
},
159+
"gpt-4-32k-0314": {
160+
"input": 0.06e-3,
161+
"output": 0.12e-3,
162+
},
151163
}
152164

153165
def __init__(

openlayer/model_runners/ll_model_runners.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@ class OpenAIChatCompletionRunner(LLModelRunner):
452452
"input": 0.002e-3,
453453
"output": 0.002e-3,
454454
},
455+
"gpt-3.5-turbo": {
456+
"input": 0.0005e-3,
457+
"output": 0.0015e-3,
458+
},
455459
"gpt-3.5-turbo-0125": {
456460
"input": 0.0005e-3,
457461
"output": 0.0015e-3,
@@ -488,6 +492,10 @@ class OpenAIChatCompletionRunner(LLModelRunner):
488492
"input": 0.01e-3,
489493
"output": 0.03e-3,
490494
},
495+
"gpt-4-0314": {
496+
"input": 0.03e-3,
497+
"output": 0.06e-3,
498+
},
491499
"gpt-4-1106-vision-preview": {
492500
"input": 0.01e-3,
493501
"output": 0.03e-3,
@@ -496,6 +504,10 @@ class OpenAIChatCompletionRunner(LLModelRunner):
496504
"input": 0.06e-3,
497505
"output": 0.12e-3,
498506
},
507+
"gpt-4-32k-0314": {
508+
"input": 0.06e-3,
509+
"output": 0.12e-3,
510+
},
499511
}
500512

501513
def __init__(

0 commit comments

Comments
 (0)