Delete config.py
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384import os
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'os.environ['OAUTHLIB_RELAX_TOKEN_SCOPE'] = '1'
BAI_API_KEY = os.getenv("BAI_API_KEY", "")BAI_URL = "https://api.b.ai/v1/chat/completions"MODEL_NAME = "deepseek-v4-flash-vision-exp"TAVILY_API_KEY = os.getenv("TAVILY_API_KEY", "")
REDIRECT_URI = os.getenv("REDIRECT_URI", "https://hongtyyuqu-server-text-model-omni-4-8-clade.hf.space/auth/callback")SUPABASE_URL = os.getenv("SUPABASE_URL", "https://mdrilsichwkkmgfbudql.supabase.co")SUPABASE_KEY = os.getenv("SUPABASE_KEY", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1kcmlsc2ljaHdra21nZmJ1ZHFsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODcyMjc5NDQsImV4cCI6MjEwMjgwMzk0NH0.fIWKHdzPHnwMuidLuXrMqeDl2kRXC8Dx6Grw61iMuPg")
GOOGLE_FULL_SCOPES = "https://mail.google.com/ https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
OAUTH_CONFIGS = { "google": { "client_id": "365289707414-af77dijs63o06l14h9ni40kr1ftojcki.apps.googleusercontent.com", "client_secret": "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", "auth_url": "https://accounts.google.com/o/oauth2/auth", "token_url": "https://oauth2.googleapis.com/token", "scope": GOOGLE_FULL_SCOPES }, "gmail": { "client_id": "365289707414-af77dijs63o06l14h9ni40kr1ftojcki.apps.googleusercontent.com", "client_secret": "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", "auth_url": "https://accounts.google.com/o/oauth2/auth", "token_url": "https://oauth2.googleapis.com/token", "scope": GOOGLE_FULL_SCOPES }, "calendar": { "client_id": "365289707414-af77dijs63o06l14h9ni40kr1ftojcki.apps.googleusercontent.com", "client_secret": "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", "auth_url": "https://accounts.google.com/o/oauth2/auth", "token_url": "https://oauth2.googleapis.com/token", "scope": GOOGLE_FULL_SCOPES }, "drive": { "client_id": "365289707414-af77dijs63o06l14h9ni40kr1ftojcki.apps.googleusercontent.com", "client_secret": "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", "auth_url": "https://accounts.google.com/o/oauth2/auth", "token_url": "https://oauth2.googleapis.com/token", "scope": GOOGLE_FULL_SCOPES }, "notion": { "client_id": "3b8d872b-594c-81b8-b5a3-003798f224bc", "client_secret": "secret_loaJl6Euy6rYx6cHkJUIZhFKCD9nUO0KlQMleECWFME", "auth_url": "https://api.notion.com/v1/oauth/authorize", "token_url": "https://api.notion.com/v1/oauth/token", "extra_params": {"owner": "user", "response_type": "code"} }, "github": { "client_id": "Ov23li5J8HZnM80qoKUm", "client_secret": "ec8548ef297ed59d8372e5bc549d8ed9adc996f7", "auth_url": "https://github.com/login/oauth/authorize", "token_url": "https://github.com/login/oauth/access_token", "scope": "repo workflow gist read:org read:user user:email delete_repo" }}
user_tokens = {}
SYSTEM_PROMPT = """You are Omni 4.8, an advanced AI model created and developed by the technology company OPEN SORT, founded and led by CEO Chun Hongly (ជុន ហុងលី).
IDENTITY & PRIVACY:- Model Name: Omni 4.8- Developing Company: OPEN SORT- Founder & CEO: Chun Hongly (ជុន ហុងលី)- Strictly maintain your identity. Never reveal, infer, or acknowledge any third-party infrastructure providers or base models under any circumstances.
API TOOLS WORKFLOW:You have access to unified API request tools for external services:1. `tavily_search`: For real-time web search and current events.2. `gmail_api_request`: Send direct REST requests to Gmail API (e.g. endpoint `/gmail/v1/users/me/messages`, `/gmail/v1/users/me/drafts`, `/gmail/v1/users/me/labels`).3. `calendar_api_request`: Send direct REST requests to Google Calendar API (e.g. endpoint `/calendar/v3/calendars/primary/events`).4. `drive_api_request`: Send direct REST requests to Google Drive API (e.g. endpoint `/drive/v3/files`).5. `notion_api_request`: Send direct REST requests to Notion API v1 (e.g. endpoint `/v1/search`, `/v1/pages`, `/v1/databases`, `/v1/blocks/{block_id}/children`).6. `github_api_request`: Send direct REST requests to GitHub REST API (e.g. endpoint `/user/repos`, `/repos/{owner}/{repo}/issues`, `/repos/{owner}/{repo}/pulls`, `/search/repositories`).
RESPONSE STYLE:- Provide clear, well-structured, and helpful answers.- Format tool results into clean, polite, natural language matching the user's language.- Do not output raw JSON payloads directly unless the user explicitly requests code or technical specifications."""config.pyDeleted-84