update .env.example

This commit is contained in:
CREDO23 2025-08-04 01:02:35 +02:00
parent d383e3d0f4
commit e5d25a2714
3 changed files with 10 additions and 0 deletions

View file

@ -8,6 +8,7 @@ AUTH_TYPE=GOOGLE or LOCAL
# For Google Auth Only
GOOGLE_OAUTH_CLIENT_ID=924507538m
GOOGLE_OAUTH_CLIENT_SECRET=GOCSV
GOOGLE_GMAIL_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/gmail/connector/callback
# Embedding Model
EMBEDDING_MODEL=mixedbread-ai/mxbai-embed-large-v1

View file

@ -1,3 +1,9 @@
import os
os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = (
"1" # It is to disbale the error "Invalid token scope" when using Google OAuth with increemental scopes
)
from contextlib import asynccontextmanager
from fastapi import Depends, FastAPI

View file

@ -47,6 +47,9 @@ class Config:
GOOGLE_OAUTH_CLIENT_ID = os.getenv("GOOGLE_OAUTH_CLIENT_ID")
GOOGLE_OAUTH_CLIENT_SECRET = os.getenv("GOOGLE_OAUTH_CLIENT_SECRET")
# Google Gmail redirect URI
GOOGLE_GMAIL_REDIRECT_URI = os.getenv("GOOGLE_GMAIL_REDIRECT_URI")
# LLM instances are now managed per-user through the LLMConfig system
# Legacy environment variables removed in favor of user-specific configurations