-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
68 lines (65 loc) · 3.12 KB
/
Copy pathconfig.py
File metadata and controls
68 lines (65 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file='.env',
env_file_encoding='utf-8',
extra='ignore',
)
database_url: str = 'postgresql+psycopg2://postgres:postgres@localhost:5432/cognix'
question_table: str = 'questions'
question_reports_table: str = 'question_reports'
multiplayer_rooms_table: str = 'multiplayer_rooms'
multiplayer_participants_table: str = 'multiplayer_room_participants'
users_table: str = 'users'
attempts_table: str = 'question_attempts'
attempt_history_table: str = 'question_attempt_history'
sessions_table: str = 'training_sessions'
session_history_table: str = 'training_session_history'
summaries_table: str = 'training_summaries'
user_summaries_table: str = 'training_summaries_user'
user_coin_ledger_table: str = 'user_coin_ledger'
user_avatar_inventory_table: str = 'user_avatar_inventory'
study_plan_table: str = 'user_study_plans'
flashcards_table: str = 'user_flashcards'
flashcard_deck_states_table: str = 'user_flashcard_deck_states'
writing_themes_table: str = 'writing_themes'
writing_submissions_table: str = 'writing_submissions'
writing_submission_versions_table: str = 'writing_submission_versions'
coupon_redemptions_table: str = 'coupon_redemptions'
payment_subscriptions_table: str = 'payment_subscriptions'
user_access_grants_table: str = 'user_access_grants'
google_play_subscriptions_table: str = 'google_play_subscriptions'
allowed_origins: list[str] = ['*']
firebase_credentials: str | None = None
firebase_clock_skew_seconds: int = 5
gemini_api_key: str | None = None
gemini_model: str = 'gemini-2.5-flash-lite'
gemini_image_model: str = 'gemini-2.5-flash-lite'
ai_chat_max_messages: int = 16
ai_chat_max_content_chars: int = 4000
ai_chat_max_attachments: int = 3
ai_chat_max_attachment_bytes: int = 6291456
ai_chat_max_output_tokens: int = 900
ai_chat_timeout_seconds: int = 45
ai_chat_temperature: float = 0.35
profile_ai_insight_ttl_minutes: int = 1440
app_timezone: str = 'America/Sao_Paulo'
abacatepay_api_key: str | None = None
abacatepay_api_base_url: str = 'https://api.abacatepay.com/v2'
abacatepay_app_url: str = 'https://mkt.cognix-hub.com'
abacatepay_product_id_mensal: str | None = None
abacatepay_product_id_anual: str | None = None
abacatepay_coupon_mensal_first_month: str | None = None
abacatepay_hash_secret: str | None = None
abacatepay_webhook_secret: str | None = None
abacatepay_webhook_signature_key: str | None = None
utmify_api_token: str | None = None
utmify_orders_url: str = 'https://api.utmify.com.br/api-credentials/orders'
utmify_platform: str = 'Cognix'
utmify_is_test: bool = False
google_play_package_name: str = 'com.cognixhub.app'
google_play_product_id_monthly: str = 'cognix_premium_monthly'
google_play_product_id_annual: str = 'cognix_premium_annual'
google_play_service_account_credentials: str | None = None
cognix_trial_days: int = 3
settings = Settings()