ifieryarrows commited on
Commit
b020cb9
Β·
verified Β·
1 Parent(s): 225d4a2

Sync from GitHub (tests passed)

Browse files
Files changed (2) hide show
  1. app/features.py +1 -1
  2. app/settings.py +6 -5
app/features.py CHANGED
@@ -18,7 +18,7 @@ import pandas as pd
18
  from sqlalchemy import func
19
  from sqlalchemy.orm import Session
20
 
21
- pd.set_option("future.no_silent_downcasting", True)
22
 
23
  from app.db import SessionLocal
24
  from app.models import PriceBar, DailySentiment, DailySentimentV2
 
18
  from sqlalchemy import func
19
  from sqlalchemy.orm import Session
20
 
21
+ # pd.set_option("future.no_silent_downcasting", True)
22
 
23
  from app.db import SessionLocal
24
  from app.models import PriceBar, DailySentiment, DailySentimentV2
app/settings.py CHANGED
@@ -79,14 +79,15 @@ class Settings(BaseSettings):
79
  # Deprecated - kept for backward compatibility
80
  openrouter_model: str = "arcee-ai/trinity-large-preview:free"
81
  # Scoring models:
82
- # fast β†’ google/gemma-3-4b-it:free (131K ctx, JSON mode, system prompt OK)
83
- # Note: gemma-3-4b β‰  gemma-3n-e4b; the nano variant blocks system prompts.
84
  # reliable β†’ mistralai/mistral-small-3.1-24b-instruct:free (128K ctx, 24B, reliable JSON)
85
- # commentary β†’ same as reliable for higher quality prose
86
- openrouter_model_scoring: str = "google/gemma-3-4b-it:free"
 
 
87
  openrouter_model_scoring_fast: Optional[str] = None
88
  openrouter_model_scoring_reliable: Optional[str] = "mistralai/mistral-small-3.1-24b-instruct:free"
89
- openrouter_model_commentary: str = "mistralai/mistral-small-3.1-24b-instruct:free"
90
  openrouter_rpm: int = 18
91
  openrouter_max_retries: int = 3
92
  # Free tier: 50 req/day. At 12 articles/chunk, 100 articles = ~9 chunks = ~9-18 req.
 
79
  # Deprecated - kept for backward compatibility
80
  openrouter_model: str = "arcee-ai/trinity-large-preview:free"
81
  # Scoring models:
82
+ # fast β†’ stepfun/step-3.5-flash:free (196B MoE, 256K ctx, system prompt + JSON OK)
 
83
  # reliable β†’ mistralai/mistral-small-3.1-24b-instruct:free (128K ctx, 24B, reliable JSON)
84
+ # commentary β†’ same as fast for balanced quality/speed
85
+ # NOTE: google/gemma-3-4b-it:free fails on Google AI Studio (system prompt blocked).
86
+ # google/gemma-3n-e4b-it:free (nano) also blocks system prompts β€” do NOT use.
87
+ openrouter_model_scoring: str = "stepfun/step-3.5-flash:free"
88
  openrouter_model_scoring_fast: Optional[str] = None
89
  openrouter_model_scoring_reliable: Optional[str] = "mistralai/mistral-small-3.1-24b-instruct:free"
90
+ openrouter_model_commentary: str = "stepfun/step-3.5-flash:free"
91
  openrouter_rpm: int = 18
92
  openrouter_max_retries: int = 3
93
  # Free tier: 50 req/day. At 12 articles/chunk, 100 articles = ~9 chunks = ~9-18 req.