Update config.py
Browse files3 unmodified lines456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657583 unmodified linesos.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"3 unmodified lines45678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364653 unmodified linesos.environ['OAUTHLIB_RELAX_TOKEN_SCOPE'] = '1'BAI_API_KEY = os.getenv("BAI_API_KEY", "")BAI_URL = os.getenv("BAI_URL", "https://api.b.ai/v1/chat/completions")MODEL_NAME = os.getenv("MODEL_NAME", "deepseek-v4-flash-vision-exp")TAVILY_API_KEY = os.getenv("TAVILY_API_KEY", "")REDIRECT_URI = os.getenv("REDIRECT_URI", "")SUPABASE_URL = os.getenv("SUPABASE_URL", "")SUPABASE_KEY = os.getenv("SUPABASE_KEY", "")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": os.getenv("GOOGLE_CLIENT_ID", ""),"client_secret": os.getenv("GOOGLE_CLIENT_SECRET", ""),"auth_url": "https://accounts.google.com/o/oauth2/auth","token_url": "https://oauth2.googleapis.com/token","scope": GOOGLE_FULL_SCOPES},"gmail": {"client_id": os.getenv("GOOGLE_CLIENT_ID", ""),"client_secret": os.getenv("GOOGLE_CLIENT_SECRET", ""),"auth_url": "https://accounts.google.com/o/oauth2/auth","token_url": "https://oauth2.googleapis.com/token","scope": GOOGLE_FULL_SCOPES},"calendar": {"client_id": os.getenv("GOOGLE_CLIENT_ID", ""),"client_secret": os.getenv("GOOGLE_CLIENT_SECRET", ""),"auth_url": "https://accounts.google.com/o/oauth2/auth","token_url": "https://oauth2.googleapis.com/token","scope": GOOGLE_FULL_SCOPES},"drive": {"client_id": os.getenv("GOOGLE_CLIENT_ID", ""),"client_secret": os.getenv("GOOGLE_CLIENT_SECRET", ""),"auth_url": "https://accounts.google.com/o/oauth2/auth","token_url": "https://oauth2.googleapis.com/token","scope": GOOGLE_FULL_SCOPES},"notion": {"client_id": os.getenv("NOTION_CLIENT_ID", ""),"client_secret": os.getenv("NOTION_CLIENT_SECRET", ""),"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": os.getenv("GITHUB_CLIENT_ID", ""),"client_secret": os.getenv("GITHUB_CLIENT_SECRET", ""),"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"
config.py+25-18