update .env.example

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

View file

@ -9,6 +9,7 @@ AUTH_TYPE=GOOGLE or LOCAL
GOOGLE_OAUTH_CLIENT_ID=924507538m
GOOGLE_OAUTH_CLIENT_SECRET=GOCSV
GOOGLE_CALENDAR_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/calendar/connector/callback
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

@ -51,6 +51,9 @@ class Config:
# Google Calendar redirect URI
GOOGLE_CALENDAR_REDIRECT_URI = os.getenv("GOOGLE_CALENDAR_REDIRECT_URI")
# 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