Spaces:
Sleeping
Sleeping
Update config.py
Browse files
config.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
# config.py
|
| 2 |
# This is the central "control panel" for MudabbirAI.
|
| 3 |
-
# We are using the most cost-effective models with large context windows.
|
| 4 |
|
| 5 |
# --- 1. MODEL CONFIGURATION ---
|
| 6 |
MODELS = {
|
|
@@ -16,15 +15,20 @@ MODELS = {
|
|
| 16 |
"default": "claude-3-5-haiku-20241022"
|
| 17 |
},
|
| 18 |
"SambaNova": {
|
| 19 |
-
#
|
| 20 |
-
# Using the Maverick model. It is available on your dashboard
|
| 21 |
-
# and has a 512K context window, meeting our requirement.
|
| 22 |
"default": "Llama-4-Maverick-17B-128E-Instruct"
|
| 23 |
-
# --- END OF FIX ---
|
| 24 |
}
|
| 25 |
}
|
| 26 |
|
| 27 |
-
# --- 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
CALIBRATION_CONFIG = {
|
| 29 |
"roles_to_test": {
|
| 30 |
"Plant": "Culture_5",
|
|
@@ -38,13 +42,13 @@ CALIBRATION_CONFIG = {
|
|
| 38 |
}
|
| 39 |
}
|
| 40 |
|
| 41 |
-
# ---
|
| 42 |
PROMPT_FILES = {
|
| 43 |
-
"evaluator": "
|
| 44 |
"classifier": "prompts/classifier.txt",
|
| 45 |
"manager_homogeneous": "prompts/manager_homogeneous.txt",
|
| 46 |
"manager_heterogeneous": "prompts/manager_heterogeneous.txt"
|
| 47 |
}
|
| 48 |
|
| 49 |
-
# ---
|
| 50 |
DEFAULT_PERSONA_KEY = "Culture_Expert"
|
|
|
|
| 1 |
# config.py
|
| 2 |
# This is the central "control panel" for MudabbirAI.
|
|
|
|
| 3 |
|
| 4 |
# --- 1. MODEL CONFIGURATION ---
|
| 5 |
MODELS = {
|
|
|
|
| 15 |
"default": "claude-3-5-haiku-20241022"
|
| 16 |
},
|
| 17 |
"SambaNova": {
|
| 18 |
+
# Using the Maverick model.
|
|
|
|
|
|
|
| 19 |
"default": "Llama-4-Maverick-17B-128E-Instruct"
|
|
|
|
| 20 |
}
|
| 21 |
}
|
| 22 |
|
| 23 |
+
# --- 2. PRICING (USD per 1 Million Tokens) ---
|
| 24 |
+
# Based on standard public pricing (approximate)
|
| 25 |
+
PRICING = {
|
| 26 |
+
"Gemini": {"input": 0.10, "output": 0.40}, # Flash tier
|
| 27 |
+
"Anthropic": {"input": 0.25, "output": 1.25}, # Haiku tier
|
| 28 |
+
"SambaNova": {"input": 0.00, "output": 0.00} # Often free in hackathons/preview
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
# --- 3. CALIBRATION CONFIGURATION ---
|
| 32 |
CALIBRATION_CONFIG = {
|
| 33 |
"roles_to_test": {
|
| 34 |
"Plant": "Culture_5",
|
|
|
|
| 42 |
}
|
| 43 |
}
|
| 44 |
|
| 45 |
+
# --- 4. PROMPT FILE PATHS ---
|
| 46 |
PROMPT_FILES = {
|
| 47 |
+
"evaluator": "evaluator_judge.txt",
|
| 48 |
"classifier": "prompts/classifier.txt",
|
| 49 |
"manager_homogeneous": "prompts/manager_homogeneous.txt",
|
| 50 |
"manager_heterogeneous": "prompts/manager_heterogeneous.txt"
|
| 51 |
}
|
| 52 |
|
| 53 |
+
# --- 5. STATIC CONFIGS ---
|
| 54 |
DEFAULT_PERSONA_KEY = "Culture_Expert"
|