nikeshn commited on
Commit
582d129
Β·
verified Β·
1 Parent(s): 407f117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -41,10 +41,12 @@ from utils import norm_issn
41
  logger = logging.getLogger(__name__)
42
 
43
  # ── Constants ──────────────────────────────────────────────────────────────
44
- MODEL = "gpt-4o-mini" # primary model β€” journal analysis, chat, repo finder
45
- MODEL_LIGHT = "gpt-4.1-nano" # lightweight calls β€” subject normalise, cover letter
46
- # Tier 4 limits: gpt-4o-mini = 10M TPM, gpt-4.1-nano = 10M TPM β€” both very high
47
- # The 429s were caused by $10 monthly spend cap, not rate limits
 
 
48
 
49
  # ── KU APC agreement publishers (Option B: publisher + top 15% check) ────────
50
  # KU has agreements with 6 publishers. Badge shown if publisher matches AND
 
41
  logger = logging.getLogger(__name__)
42
 
43
  # ── Constants ──────────────────────────────────────────────────────────────
44
+ # Model routing β€” all separate quota buckets at Tier 4
45
+ MODEL = "gpt-4.1-mini" # journal analysis, chat, repo finder β€” 10M TPM, Tier 4
46
+ MODEL_LIGHT = "gpt-4.1-nano" # subject browse, cover letter, license β€” 10M TPM, Tier 4
47
+ # gpt-4.1-mini: $0.04/1M input (4x cheaper than gpt-4o-mini, same quality for JSON tasks)
48
+ # gpt-4.1-nano: $0.01/1M input (ultra-cheap for simple normalisation calls)
49
+ # Both have completely separate quota from gpt-4o-mini
50
 
51
  # ── KU APC agreement publishers (Option B: publisher + top 15% check) ────────
52
  # KU has agreements with 6 publishers. Badge shown if publisher matches AND