Spaces:
Sleeping
Sleeping
DevelopedBy-Siva commited on
Commit ·
279ac83
1
Parent(s): 12b9f26
update model
Browse files- .env +1 -1
- .env.example +1 -1
- .github/workflows/deploy.yml +1 -1
- README.md +1 -0
- backend/__pycache__/config.cpython-311.pyc +0 -0
- backend/__pycache__/config.cpython-312.pyc +0 -0
- backend/config.py +1 -1
.env
CHANGED
|
@@ -3,5 +3,5 @@ ALLOW_ORIGINS=*
|
|
| 3 |
GMAIL_POLL_SECONDS=30
|
| 4 |
VERTEX_PROJECT_ID=flow-pilot-493104
|
| 5 |
VERTEX_LOCATION=us-central1
|
| 6 |
-
VERTEX_MODEL=gemini-2.5-
|
| 7 |
GOOGLE_APPLICATION_CREDENTIALS=
|
|
|
|
| 3 |
GMAIL_POLL_SECONDS=30
|
| 4 |
VERTEX_PROJECT_ID=flow-pilot-493104
|
| 5 |
VERTEX_LOCATION=us-central1
|
| 6 |
+
VERTEX_MODEL=gemini-2.5-flash
|
| 7 |
GOOGLE_APPLICATION_CREDENTIALS=
|
.env.example
CHANGED
|
@@ -3,5 +3,5 @@ ALLOW_ORIGINS=*
|
|
| 3 |
GMAIL_POLL_SECONDS=30
|
| 4 |
VERTEX_PROJECT_ID=your-gcp-project-id
|
| 5 |
VERTEX_LOCATION=us-central1
|
| 6 |
-
VERTEX_MODEL=gemini-2.5-
|
| 7 |
GOOGLE_APPLICATION_CREDENTIALS=
|
|
|
|
| 3 |
GMAIL_POLL_SECONDS=30
|
| 4 |
VERTEX_PROJECT_ID=your-gcp-project-id
|
| 5 |
VERTEX_LOCATION=us-central1
|
| 6 |
+
VERTEX_MODEL=gemini-2.5-flash
|
| 7 |
GOOGLE_APPLICATION_CREDENTIALS=
|
.github/workflows/deploy.yml
CHANGED
|
@@ -58,4 +58,4 @@ jobs:
|
|
| 58 |
image: ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ github.sha }}
|
| 59 |
flags: >-
|
| 60 |
--allow-unauthenticated
|
| 61 |
-
--set-env-vars=AI_PROVIDER=vertex_ai,VERTEX_PROJECT_ID=${{ env.PROJECT_ID }},VERTEX_LOCATION=${{ env.REGION }},VERTEX_MODEL=gemini-2.5-
|
|
|
|
| 58 |
image: ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ github.sha }}
|
| 59 |
flags: >-
|
| 60 |
--allow-unauthenticated
|
| 61 |
+
--set-env-vars=AI_PROVIDER=vertex_ai,VERTEX_PROJECT_ID=${{ env.PROJECT_ID }},VERTEX_LOCATION=${{ env.REGION }},VERTEX_MODEL=gemini-2.5-flash
|
README.md
CHANGED
|
@@ -74,5 +74,6 @@ The workflow builds the Docker image, pushes it to Artifact Registry, and deploy
|
|
| 74 |
- Fill in your real Vertex values in `.env`, especially `VERTEX_PROJECT_ID` and `VERTEX_LOCATION`.
|
| 75 |
- If you authenticate with `gcloud auth application-default login`, leave `GOOGLE_APPLICATION_CREDENTIALS` blank.
|
| 76 |
- Only set `GOOGLE_APPLICATION_CREDENTIALS` when you have a real service account JSON path available.
|
|
|
|
| 77 |
- The backend now attempts live Vertex AI calls through the `google-genai` SDK when credentials are configured.
|
| 78 |
- If the SDK is missing or `VERTEX_PROJECT_ID` is still a placeholder, FlowPilot falls back to local deterministic mock logic so tests and scaffolding still work.
|
|
|
|
| 74 |
- Fill in your real Vertex values in `.env`, especially `VERTEX_PROJECT_ID` and `VERTEX_LOCATION`.
|
| 75 |
- If you authenticate with `gcloud auth application-default login`, leave `GOOGLE_APPLICATION_CREDENTIALS` blank.
|
| 76 |
- Only set `GOOGLE_APPLICATION_CREDENTIALS` when you have a real service account JSON path available.
|
| 77 |
+
- The default model is `gemini-2.5-flash` for better latency and cost during iteration.
|
| 78 |
- The backend now attempts live Vertex AI calls through the `google-genai` SDK when credentials are configured.
|
| 79 |
- If the SDK is missing or `VERTEX_PROJECT_ID` is still a placeholder, FlowPilot falls back to local deterministic mock logic so tests and scaffolding still work.
|
backend/__pycache__/config.cpython-311.pyc
CHANGED
|
Binary files a/backend/__pycache__/config.cpython-311.pyc and b/backend/__pycache__/config.cpython-311.pyc differ
|
|
|
backend/__pycache__/config.cpython-312.pyc
CHANGED
|
Binary files a/backend/__pycache__/config.cpython-312.pyc and b/backend/__pycache__/config.cpython-312.pyc differ
|
|
|
backend/config.py
CHANGED
|
@@ -16,7 +16,7 @@ class Settings(BaseModel):
|
|
| 16 |
gmail_poll_seconds: int = int(os.getenv("GMAIL_POLL_SECONDS", "30"))
|
| 17 |
vertex_project_id: str = os.getenv("VERTEX_PROJECT_ID", "your-gcp-project-id")
|
| 18 |
vertex_location: str = os.getenv("VERTEX_LOCATION", "us-central1")
|
| 19 |
-
vertex_model: str = os.getenv("VERTEX_MODEL", "gemini-2.5-
|
| 20 |
google_application_credentials: str = os.getenv(
|
| 21 |
"GOOGLE_APPLICATION_CREDENTIALS",
|
| 22 |
"",
|
|
|
|
| 16 |
gmail_poll_seconds: int = int(os.getenv("GMAIL_POLL_SECONDS", "30"))
|
| 17 |
vertex_project_id: str = os.getenv("VERTEX_PROJECT_ID", "your-gcp-project-id")
|
| 18 |
vertex_location: str = os.getenv("VERTEX_LOCATION", "us-central1")
|
| 19 |
+
vertex_model: str = os.getenv("VERTEX_MODEL", "gemini-2.5-flash")
|
| 20 |
google_application_credentials: str = os.getenv(
|
| 21 |
"GOOGLE_APPLICATION_CREDENTIALS",
|
| 22 |
"",
|