trading/services/sentiment_analyzer/config.py

15 lines
465 B
Python

"""Configuration for the sentiment analyzer service."""
from shared.config import BaseConfig
class SentimentAnalyzerConfig(BaseConfig):
"""Extends BaseConfig with sentiment-analysis-specific settings."""
finbert_model: str = "ProsusAI/finbert"
finbert_confidence_threshold: float = 0.6
ollama_model: str = "mistral"
ollama_host: str = "http://localhost:11434"
max_content_length: int = 512
model_config = {"env_prefix": "TRADING_"}