Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(model): add support for o1 model costs (#5073)

marliessophie4bf77d68ed4d
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b8bf5d7770..7e442931e8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -401,7 +401,7 @@ The background color of the following component will be `hsl(var(--primary))` an
| --primary-accent | Primary accent color used for branding | Layout |
| --hover-primary-accent | Primary accent color used for hover effects for links | SignIn and AuthCloudRegionSwitch |
| --muted-green | Muted green for Event label | ObservationTree |
-| --muted-orange | Muted orange for Generation label | ObservationTree |
+| --muted-magenta | Muted magenta for Generation label | ObservationTree |
| --muted-blue | Muted blue for Span label | ObservationTree |
| --muted-gray | Muted gray for disabled status badges | StatusBadge |
| --accent-light-green | Light green accent for background of output and assistant messages | IOPreview, Generations, Traces |
@@ -443,7 +443,7 @@ You can update the default AI models and prices by adding or updating an entry i
Please note that
- prices are in USD
-- the list is ordered by ID, so make sure to keep this order
+- the list is ordered by ID, so make sure to keep this order and insert new models at the end of the list
- the `updated_at` field must be updated with the current date in ISO 8601 format. Otherwise, the change will be ignored.
### Transition period until V3 release
diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.json
index 0c2a643079..04b70c3351 100644
--- a/worker/src/constants/default-model-prices.json
+++ b/worker/src/constants/default-model-prices.json
@@ -1328,5 +1328,39 @@
},
"tokenizer_config": null,
"tokenizer_id": null
+ },
+ {
+ "id": "cm48cjxtc000108jrcsso3avv",
+ "model_name": "o1",
+ "match_pattern": "(?i)^(o1)$",
+ "created_at": "2025-01-17T00:01:35.373Z",
+ "updated_at": "2025-01-17T00:01:35.373Z",
+ "prices": {
+ "input": 15e-6,
+ "input_cached_tokens": 7.5e-6,
+ "input_cache_read": 7.5e-6,
+ "output": 60e-6,
+ "output_reasoning_tokens": 60e-6,
+ "output_reasoning": 60e-6
+ },
+ "tokenizer_config": null,
+ "tokenizer_id": null
+ },
+ {
+ "id": "cm48cjxtc000208jrcsso3avv",
+ "model_name": "o1-2024-12-17",
+ "match_pattern": "(?i)^(o1-2024-12-17)$",
+ "created_at": "2025-01-17T00:01:35.373Z",
+ "updated_at": "2025-01-17T00:01:35.373Z",
+ "prices": {
+ "input": 15e-6,
+ "input_cached_tokens": 7.5e-6,
+ "input_cache_read": 7.5e-6,
+ "output": 60e-6,
+ "output_reasoning_tokens": 60e-6,
+ "output_reasoning": 60e-6
+ },
+ "tokenizer_config": null,
+ "tokenizer_id": null
}
]