Commit ·
282b49d
1
Parent(s): 7d1fbef
- modifying cost for request
Browse files- Config_files/message_system_config.json +1 -1
- Messaging_system/Permes.py +2 -2
- Singeo_camp.csv +0 -0
- messaging_main_test.py +1 -1
Config_files/message_system_config.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
"AI_phrases_singeo": ["your voice deserves more"],
|
| 22 |
"header_limit": 30,
|
| 23 |
"message_limit": 110,
|
| 24 |
-
"LLM_models": ["gpt-4o-mini", "gpt-4o", "gpt-4.1-mini"
|
| 25 |
"openai_models": ["gpt-4o-mini", "gpt-4o", "gpt-4.1-nano", "gpt-3.5-turbo", "gpt-4.1-mini"],
|
| 26 |
"reasoning": ["o1", "o4-mini", "o1-mini", "o3-mini"],
|
| 27 |
"ollama_models": ["deepseek-r1:1.5b", "gemma3:4b", "deepseek-r1:7b", "gemma3:4b"],
|
|
|
|
| 21 |
"AI_phrases_singeo": ["your voice deserves more"],
|
| 22 |
"header_limit": 30,
|
| 23 |
"message_limit": 110,
|
| 24 |
+
"LLM_models": ["gpt-4o-mini", "gpt-4o", "gpt-4.1-mini"],
|
| 25 |
"openai_models": ["gpt-4o-mini", "gpt-4o", "gpt-4.1-nano", "gpt-3.5-turbo", "gpt-4.1-mini"],
|
| 26 |
"reasoning": ["o1", "o4-mini", "o1-mini", "o3-mini"],
|
| 27 |
"ollama_models": ["deepseek-r1:1.5b", "gemma3:4b", "deepseek-r1:7b", "gemma3:4b"],
|
Messaging_system/Permes.py
CHANGED
|
@@ -87,8 +87,8 @@ class Permes:
|
|
| 87 |
total_prompt_tokens = personalize_message.total_tokens["prompt_tokens"]
|
| 88 |
total_completion_tokens = personalize_message.total_tokens["completion_tokens"]
|
| 89 |
|
| 90 |
-
total_cost = ((total_prompt_tokens / 1000000) * 0.
|
| 91 |
-
(total_completion_tokens / 1000000) * 0.
|
| 92 |
print(f"Estimated Cost (USD): {total_cost:.5f}")
|
| 93 |
|
| 94 |
# Storing process can also happen after some evaluation steps
|
|
|
|
| 87 |
total_prompt_tokens = personalize_message.total_tokens["prompt_tokens"]
|
| 88 |
total_completion_tokens = personalize_message.total_tokens["completion_tokens"]
|
| 89 |
|
| 90 |
+
total_cost = ((total_prompt_tokens / 1000000) * 0.15) + (
|
| 91 |
+
(total_completion_tokens / 1000000) * 0.6) # Cost calculation estimation
|
| 92 |
print(f"Estimated Cost (USD): {total_cost:.5f}")
|
| 93 |
|
| 94 |
# Storing process can also happen after some evaluation steps
|
Singeo_camp.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
messaging_main_test.py
CHANGED
|
@@ -126,7 +126,7 @@ if __name__ == "__main__":
|
|
| 126 |
recsys_contents = ["workout", "course", "quick_tips"]
|
| 127 |
|
| 128 |
# number_of_samples = users.shape[0]
|
| 129 |
-
number_of_samples =
|
| 130 |
|
| 131 |
# number of messages to generate
|
| 132 |
number_of_messages = 3
|
|
|
|
| 126 |
recsys_contents = ["workout", "course", "quick_tips"]
|
| 127 |
|
| 128 |
# number_of_samples = users.shape[0]
|
| 129 |
+
number_of_samples = 10
|
| 130 |
|
| 131 |
# number of messages to generate
|
| 132 |
number_of_messages = 3
|