Spaces:
Sleeping
Sleeping
Bima Ardhia
commited on
Commit
·
a92ae62
1
Parent(s):
be7f306
up
Browse files- user_agent/__init__.py +2 -2
- user_agent/config.py +2 -2
user_agent/__init__.py
CHANGED
|
@@ -11,8 +11,8 @@ import vertexai
|
|
| 11 |
# Load environment variables
|
| 12 |
|
| 13 |
# Get Vertex AI configuration from environment
|
| 14 |
-
PROJECT_ID = os.getenv(
|
| 15 |
-
LOCATION = os.getenv(
|
| 16 |
|
| 17 |
# Initialize Vertex AI at package load time
|
| 18 |
try:
|
|
|
|
| 11 |
# Load environment variables
|
| 12 |
|
| 13 |
# Get Vertex AI configuration from environment
|
| 14 |
+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
|
| 15 |
+
LOCATION = os.getenv('GOOGLE_CLOUD_LOCATION')
|
| 16 |
|
| 17 |
# Initialize Vertex AI at package load time
|
| 18 |
try:
|
user_agent/config.py
CHANGED
|
@@ -11,8 +11,8 @@ import os
|
|
| 11 |
# but included for safety when importing config directly)
|
| 12 |
|
| 13 |
# Vertex AI settings
|
| 14 |
-
PROJECT_ID = os.getenv(
|
| 15 |
-
LOCATION = os.getenv(
|
| 16 |
|
| 17 |
# RAG settings
|
| 18 |
DEFAULT_CHUNK_SIZE = 512
|
|
|
|
| 11 |
# but included for safety when importing config directly)
|
| 12 |
|
| 13 |
# Vertex AI settings
|
| 14 |
+
PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT')
|
| 15 |
+
LOCATION = os.getenv('GOOGLE_CLOUD_LOCATION')
|
| 16 |
|
| 17 |
# RAG settings
|
| 18 |
DEFAULT_CHUNK_SIZE = 512
|