precison9 commited on
Commit
019da65
·
verified ·
1 Parent(s): 8da4a2f

Update app/rag/routes.py

Browse files
Files changed (1) hide show
  1. 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": 1024,
43
- "meta-llama/llama-4-maverick-17b-128e-instruct": 1024,
44
- "moonshotai/kimi-k2-instruct": 1024,
45
- "qwen/qwen3-32b": 1024,
46
- "groq/compound": 1024,
 
 
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