-
Notifications
You must be signed in to change notification settings - Fork 107
Staging #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Staging #156
Changes from all commits
0a8f65f
3438c44
b61598b
05b70b0
f6b2898
e99998e
4f6e6d5
3d99fea
94ede81
acaade4
4dc93b1
9d96d9a
4d36bfa
9f7f3ae
fc0389d
dcfb5fc
62c448e
9d82047
aa61444
d088b36
2e700cf
7647f6e
0f8f049
0175560
034bb7f
c89a793
d1b51a2
337c0f2
e6332dd
106b474
6d22da0
58e26d7
7eaa369
9fbb26c
7a10e70
1cfeec6
f465a43
21bfea2
71fcbd1
3463773
090a24b
5bd1855
b6f8dbe
a0c94c9
d5db163
891218c
19d9695
9b75abb
f002768
7f540d3
cefd25c
7143cb3
a62da10
e80f371
93ab17e
ebba6ab
900f2f5
cb18acc
c12572e
9c72e1a
423e2f1
68b489c
d0097a0
a10617d
70815c3
bd455cc
69949c9
48a8049
35faa8e
cbe2897
2d2e9aa
964f26b
7ac836a
17bade0
893b81c
aa5ce1e
0e5bc05
7f22c0d
3356bfd
72ca9c2
5cf662b
fe7d18f
854d6db
4397e5b
147afb3
5b27cc4
16edbe0
b06c3e9
82d08fb
0bffe52
b4fb529
31ffece
96710af
a600f60
726189b
4e507a7
341f61c
654c90d
d1f0bc7
b037370
8acbb2c
1e66b77
186d803
368920b
ce09501
96a13fb
44eaaf0
f72e45f
c93f0f3
b90ebdd
d3bb94a
ec5280f
4b5183c
79dabcc
95c191f
ca1c4f5
23e2687
7468126
04f1f8e
55d4c63
bb668bb
75870cf
5e0d3c8
534c556
2944b5a
5130eee
f24ec68
5bc6bcc
35341c5
d9ae6d9
a0131de
828ec8d
7a20268
fc6845e
e7b3730
fab85e2
bfd8f82
5d9e52c
aac787b
6d68809
8d7711a
897a879
a88d7f9
6ba8697
ee9100a
83fd99c
4b0f627
b346421
7d85d1c
6de1dbf
de2df08
191e289
2548bf1
8213294
a57dedb
72a7494
b5e9936
8ee697e
83a6fec
2f54a95
f158f81
8a972f0
63c227a
e5fbb42
3fa4567
8c58350
fbd3feb
9a2107b
af3b75a
4467058
cf0e694
cd058f8
05ca14c
75b231c
428d8fc
0245bf0
da214e5
cf845e1
6f43108
4b1d65a
84699d2
f3a2ccd
0187ad3
3a52f22
c398091
6ffc78b
6568f24
469c69f
a3d803f
bf71824
f33b5b8
75d9438
18b5d0c
aaf9156
f781e81
21785f9
fcac6dd
ee82b3f
d0a0b81
a66d7db
935cfcd
666f5c1
752eb2a
3651063
9e9c631
9df075d
f1df24c
1147551
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,109 @@ | ||
| # Example configuration for text2sql with AI-generated user responses | ||
| # QueryWeaver example environment file | ||
| # Copy this to `.env` and edit values before running the app or the Docker image: | ||
| # | ||
| # cp .env.example .env | ||
| # # edit .env | ||
| # | ||
| # Minimal required variables for a basic run (these are left uncommented below): | ||
| # - FASTAPI_SECRET_KEY (REQUIRED) | ||
| # - FALKORDB_URL (REQUIRED) — preferred single connection string for FalkorDB | ||
| # | ||
| # Optional (commented) variables are provided as examples; uncomment and set them | ||
| # only if you need the functionality (OAuth, AI keys, local host/port overrides, etc.). | ||
|
|
||
| ## API Keys for LiteLLM (required for AI functionality) | ||
| # Azure OpenAI | ||
| # ----------------------------- | ||
| # Application / Server settings | ||
| # ----------------------------- | ||
| # REQUIRED: secret used by FastAPI session middleware — change this before running in production | ||
| FASTAPI_SECRET_KEY=your_super_secret_key_here | ||
|
|
||
| # Optional: enable debug/reload when running the app directly | ||
| # FASTAPI_DEBUG=False | ||
|
|
||
| # Optional: set application environment (development, staging, production) | ||
| # Default: development | ||
| # APP_ENV=development | ||
|
|
||
| # Optional: allow OAuth over HTTP in development (disable in production) | ||
| # OAUTHLIB_INSECURE_TRANSPORT=1 | ||
|
|
||
| # ----------------------------- | ||
| # FalkorDB connection (REQUIRED / preferred) | ||
| # ----------------------------- | ||
| # Preferred: single connection URL. Edit to point at your FalkorDB/Redis instance. | ||
| # Example: redis://localhost:6379/0 | ||
| FALKORDB_URL=redis://localhost:6379/0 # REQUIRED - change to your FalkorDB URL | ||
|
|
||
| # Optional: separate host/port settings for local testing (only used if FALKORDB_URL is not set) | ||
| # FALKORDB_HOST=localhost | ||
| # FALKORDB_PORT=6379 | ||
|
|
||
| # ----------------------------- | ||
| # Optional API / secret tokens | ||
| # ----------------------------- | ||
| # API token for internal API access (optional) | ||
| # SECRET_TOKEN=your_secret_token | ||
| # SECRET_TOKEN_ERP=your_erp_token | ||
|
|
||
| # ----------------------------- | ||
| # AI / LLM configuration (optional) | ||
| # ----------------------------- | ||
| # The default is to use Azure OpenAI if all three variables are set. | ||
| # If the OPENAI_API_KEY is set, it will use OpenAI directly. | ||
|
|
||
| # Azure OpenAI (example) | ||
| # AZURE_API_KEY=your_azure_api_key | ||
| # AZURE_API_BASE=https://your-resource.openai.azure.com/ | ||
| # AZURE_API_VERSION=2023-05-15 | ||
|
|
||
| # OpenAI | ||
| # OpenAI (example) | ||
| # OPENAI_API_KEY=your_openai_api_key | ||
|
|
||
| # Google OAuth for authentication | ||
| GOOGLE_CLIENT_ID=your_google_client_id | ||
| GOOGLE_CLIENT_SECRET=your_google_client_secret | ||
|
|
||
| # GitHub OAuth for authentication | ||
| GITHUB_CLIENT_ID=your_github_client_id | ||
| GITHUB_CLIENT_SECRET=your_github_client_secret | ||
| # Optional: override default model names from api/config.py | ||
| # COMPLETION_MODEL=azure/gpt-4.1 | ||
| # EMBEDDING_MODEL=azure/text-embedding-ada-002 | ||
|
|
||
|
Comment on lines
54
to
-65
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainValidate model override env var names against config/litellm usage. Placeholders look fine, but ensure COMPLETION_MODEL and EMBEDDING_MODEL match what api/config.py and litellm expect. Run: 🏁 Script executed: #!/bin/bash
# Check consumption points for model envs
rg -n -C2 '\b(COMPLETION_MODEL|EMBEDDING_MODEL)\b' -- .
# Check litellm/provider-specific envs referenced
rg -n -C2 -i 'AZURE_API_(KEY|BASE|VERSION)|OPENAI_API_KEY' -- .Length of output: 4270 🏁 Script executed: #!/bin/bash
# Display the beginning of api/config.py to inspect default values and loading logic
sed -n '1,200p' api/config.py
# Search for environment variable access patterns in api/config.py
rg -n 'getenv' -C3 -- api/config.pyLength of output: 7570 Align or remove model override env vars COMPLETION_MODEL = os.getenv("COMPLETION_MODEL", "azure/gpt-4.1")
EMBEDDING_MODEL_NAME = os.getenv("EMBEDDING_MODEL", "azure/text-embedding-ada-002")(or rename placeholders to match), or remove those lines from .env.example. |
||
| # FASTAPI configuration | ||
| FASTAPI_SECRET_KEY=your_super_secret_key_here | ||
| # ----------------------------- | ||
| # OAuth configuration (optional — uncomment to enable login flows) | ||
| # ----------------------------- | ||
| # Google OAuth | ||
| # GOOGLE_CLIENT_ID=your_google_client_id | ||
| # GOOGLE_CLIENT_SECRET=your_google_client_secret | ||
|
|
||
| # FalkorDB configuration | ||
| FALKORDB_HOST=localhost | ||
| FALKORDB_PORT=6379 | ||
| # GitHub OAuth | ||
| # GITHUB_CLIENT_ID=your_github_client_id | ||
| # GITHUB_CLIENT_SECRET=your_github_client_secret | ||
|
|
||
| # Optional tokens for API access | ||
| SECRET_TOKEN=your_secret_token | ||
| SECRET_TOKEN_ERP=your_erp_token | ||
| # If your OAuth app uses a different base URL than the request base (e.g., using 127.0.0.1 vs localhost) | ||
| # you can override the base used for building callback URLs. Example: | ||
| # OAUTH_BASE_URL=http://localhost:5000 | ||
|
|
||
| # AI Model Configuration (adjust as needed) | ||
| # These are set in api/config.py but can be overridden via environment variables | ||
| # COMPLETION_MODEL=azure/gpt-4.1 # Model used for SQL generation and response formatting | ||
| # EMBEDDING_MODEL=azure/text-embedding-ada-002 # Model used for embeddings | ||
| # ----------------------------- | ||
| # Email Configuration (optional - for sending invitation emails) | ||
| # ----------------------------- | ||
| # MAIL_SERVER=smtp.mailgun.org | ||
| # MAIL_PORT=587 | ||
| # MAIL_USE_TLS=True | ||
| # MAIL_USERNAME=your_mail_username | ||
| # MAIL_PASSWORD=your_mail_password | ||
| # MAIL_DEFAULT_SENDER=noreply@yourdomain.com | ||
| # EMAIL_AUTH_ENABLED=false | ||
|
|
||
| # Google Tag Manager (optional) | ||
| # ----------------------------- | ||
| # Frontend / analytics (optional) | ||
| # ----------------------------- | ||
| # Google Tag Manager ID (optional) | ||
| # GOOGLE_TAG_MANAGER_ID=GTM-XXXXXXX | ||
|
|
||
| # ----------------------------- | ||
| # Optional MCP (Model Context Protocol) settings | ||
| # ----------------------------- | ||
| # Control QueryWeaver's built-in MCP endpoints (default: enabled) | ||
| # Set to "true" to disable mounting the MCP HTTP surface without editing code | ||
| # DISABLE_MCP=false | ||
|
|
||
| # Notes | ||
| # ----------------------------- | ||
| # - Keep secrets out of source control. Use your local `.env` (ignored by git) or a secrets manager in production. | ||
| # - For Docker runs, pass `--env-file .env` to `docker run` or provide individual `-e` args. | ||
| # - See api/config.py for additional runtime configuration defaults and model overrides. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,3 +19,4 @@ tmp_* | |
| node_modules/ | ||
| /app/public/js/* | ||
| .jinja_cache/ | ||
| demo_tokens.py | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline comment breaks FALKORDB_URL parsing; fix quoting per dotenv-linter.
The value currently includes a trailing comment, which many dotenv parsers treat as part of the value unless quoted. Static analysis already flagged this (ValueWithoutQuotes at Line 28).
Apply:
Optional additions to help users with auth/TLS:
📝 Committable suggestion
🧰 Tools
🪛 dotenv-linter (3.3.0)
[warning] 28-28: [ValueWithoutQuotes] This value needs to be surrounded in quotes
(ValueWithoutQuotes)
🤖 Prompt for AI Agents