mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-03-02 16:21:50 +00:00
- Updated .env-template and settings.py for Microsoft Entra ID configuration. - Enhanced ConnectorsCallback to support SharePoint authentication. - Introduced SharePointAuth and SharePointLoader classes. - Added required dependencies in requirements.txt.
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
API_KEY=<LLM api key (for example, open ai key)>
|
|
LLM_NAME=docsgpt
|
|
VITE_API_STREAMING=true
|
|
INTERNAL_KEY=<internal key for worker-to-backend authentication>
|
|
|
|
# Remote Embeddings (Optional - for using a remote embeddings API instead of local SentenceTransformer)
|
|
# When set, the app will use the remote API and won't load SentenceTransformer (saves RAM)
|
|
EMBEDDINGS_BASE_URL=
|
|
EMBEDDINGS_KEY=
|
|
|
|
#For Azure (you can delete it if you don't use Azure)
|
|
OPENAI_API_BASE=
|
|
OPENAI_API_VERSION=
|
|
AZURE_DEPLOYMENT_NAME=
|
|
AZURE_EMBEDDINGS_DEPLOYMENT_NAME=
|
|
|
|
#Azure AD Application (client) ID
|
|
MICROSOFT_CLIENT_ID=your-azure-ad-client-id
|
|
#Azure AD Application client secret
|
|
MICROSOFT_CLIENT_SECRET=your-azure-ad-client-secret
|
|
#Azure AD Tenant ID (or 'common' for multi-tenant)
|
|
MICROSOFT_TENANT_ID=your-azure-ad-tenant-id
|
|
#Your project's redirect URI that you registered in Azure Portal.
|
|
#For example: http://localhost:5000/redirect
|
|
MICROSOFT_REDIRECT_URI=http://localhost:7091/api/connectors/callback/ms_entra_id
|
|
#If you are using a Microsoft Entra ID tenant,
|
|
#configure the AUTHORITY variable as
|
|
#"https://login.microsoftonline.com/TENANT_GUID"
|
|
#or "https://login.microsoftonline.com/contoso.onmicrosoft.com".
|
|
#Alternatively, use "https://login.microsoftonline.com/common" for multi-tenant app.
|
|
MICROSOFT_AUTHORITY=https://{tenentId}.ciamlogin.com/{tenentId}
|