Spaces:
Running
Running
Sync from GitHub (tests passed)
Browse files- app/features.py +1 -1
- 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 β
|
| 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
|
| 86 |
-
|
|
|
|
|
|
|
| 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 = "
|
| 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.
|