Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

[Feat]: Update OpenAI Model Pricing for Observability of cost tracking (#419)

patcher96e4959808bcb
diff --git a/.gitignore b/.gitignore
index ac9be207..d3eb8d9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,6 @@ test.py
yala.py
yala.yml
speech.mp3
-.venv
+venv/
path/
__pycache__
\ No newline at end of file
diff --git a/assets/pricing.json b/assets/pricing.json
index a07c80f7..1c314eec 100644
--- a/assets/pricing.json
+++ b/assets/pricing.json
@@ -82,13 +82,45 @@
"eleven_multilingual_sts_v2": 0.24
},
"chat": {
- "gpt-3.5-turbo": {
+ "gpt-4o": {
"promptPrice": 0.0005,
"completionPrice": 0.0015
},
- "gpt-3.5-turbo-instruct": {
- "promptPrice": 0.0015,
- "completionPrice": 0.0020
+ "gpt-4o-2024-08-06": {
+ "promptPrice": 0.0025,
+ "completionPrice": 0.010
+ },
+ "gpt-4o-2024-05-13": {
+ "promptPrice": 0.005,
+ "completionPrice": 0.015
+ },
+ "gpt-4o-mini": {
+ "promptPrice": 0.00015,
+ "completionPrice": 0.0006
+ },
+ "gpt-4o-mini-2024-07-18": {
+ "promptPrice": 0.00015,
+ "completionPrice": 0.0006
+ },
+ "o1-mini": {
+ "promptPrice": 0.003,
+ "completionPrice": 0.012
+ },
+ "o1-mini-2024-09-12": {
+ "promptPrice": 0.003,
+ "completionPrice": 0.012
+ },
+ "o1-preview": {
+ "promptPrice": 0.015,
+ "completionPrice": 0.06
+ },
+ "o1-preview-2024-09-12": {
+ "promptPrice": 0.015,
+ "completionPrice": 0.06
+ },
+ "gpt-3.5-turbo": {
+ "promptPrice": 0.0005,
+ "completionPrice": 0.0015
},
"gpt-3.5-turbo-0125": {
"promptPrice": 0.0005,
@@ -138,14 +170,6 @@
"promptPrice": 0.01,
"completionPrice": 0.03
},
- "gpt-4o": {
- "promptPrice": 0.005,
- "completionPrice": 0.015
- },
- "gpt-4o-2024-05-13": {
- "promptPrice": 0.005,
- "completionPrice": 0.015
- },
"azure_gpt-4": {
"promptPrice": 0.03,
"completionPrice": 0.06