|
32 | 32 | "gpt-4-32k-0314": {"prompt": 0.06, "completion": 0.12},
|
33 | 33 | "gpt-4-0613": {"prompt": 0.06, "completion": 0.12},
|
34 | 34 | "gpt-4-turbo-preview": {"prompt": 0.01, "completion": 0.03},
|
35 |
| - "gpt-4-turbo": {"prompt": 0.01, "completion": 0.03}, |
36 |
| - "gpt-4-0125-preview": {"prompt": 0.01, "completion": 0.03}, |
37 | 35 | "gpt-4-1106-preview": {"prompt": 0.01, "completion": 0.03},
|
| 36 | + "gpt-4-0125-preview": {"prompt": 0.01, "completion": 0.03}, |
| 37 | + "gpt-4-turbo": {"prompt": 0.01, "completion": 0.03}, |
38 | 38 | "gpt-4-vision-preview": {"prompt": 0.01, "completion": 0.03}, # TODO add extra image price calculator
|
39 | 39 | "gpt-4-1106-vision-preview": {"prompt": 0.01, "completion": 0.03},
|
40 | 40 | "text-embedding-ada-002": {"prompt": 0.0004, "completion": 0.0},
|
|
157 | 157 | TOKEN_MAX = {
|
158 | 158 | "gpt-4-0125-preview": 128000,
|
159 | 159 | "gpt-4-turbo-preview": 128000,
|
160 |
| - "gpt-4-turbo": 128000, |
161 | 160 | "gpt-4-1106-preview": 128000,
|
| 161 | + "gpt-4-turbo": 128000, |
162 | 162 | "gpt-4-vision-preview": 128000,
|
163 | 163 | "gpt-4-1106-vision-preview": 128000,
|
164 | 164 | "gpt-4": 8192,
|
@@ -221,7 +221,7 @@ def count_message_tokens(messages, model="gpt-3.5-turbo-0125"):
|
221 | 221 | "gpt-4-turbo",
|
222 | 222 | "gpt-4-turbo-preview",
|
223 | 223 | "gpt-4-0125-preview",
|
224 |
| - "gpt-4-1106-preview", |
| 224 | + "gpt-4-turbo", |
225 | 225 | "gpt-4-vision-preview",
|
226 | 226 | "gpt-4-1106-vision-preview",
|
227 | 227 | }:
|
|
0 commit comments