Update app/rag/routes.py
Browse files- app/rag/routes.py +7 -5
app/rag/routes.py
CHANGED
|
@@ -39,11 +39,13 @@ WEB_SEARCH_TOOL = {
|
|
| 39 |
# below read from here, so there's no way for them to drift out of sync
|
| 40 |
# with each other again.
|
| 41 |
MODEL_MAX_TOKENS = {
|
| 42 |
-
"llama-3.1-8b-instant":
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
"
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
DEFAULT_MAX_TOKENS = 500
|
| 49 |
|
|
|
|
| 39 |
# below read from here, so there's no way for them to drift out of sync
|
| 40 |
# with each other again.
|
| 41 |
MODEL_MAX_TOKENS = {
|
| 42 |
+
"llama-3.1-8b-instant": 500, # 6K TPM — tightest limit, stays low
|
| 43 |
+
"llama-3.3-70b-versatile": 1500, # 12K TPM
|
| 44 |
+
"groq/compound": 4000, # 70K TPM — plenty of headroom
|
| 45 |
+
"groq/compound-mini": 4000, # 70K TPM
|
| 46 |
+
"openai/gpt-oss-120b": 1200, # 8K TPM
|
| 47 |
+
"openai/gpt-oss-20b": 1200, # 8K TPM
|
| 48 |
+
"qwen/qwen3.6-27b": 1200,
|
| 49 |
}
|
| 50 |
DEFAULT_MAX_TOKENS = 500
|
| 51 |
|