Update app/routes/chat_api.py
Browse files- app/routes/chat_api.py +1 -1
app/routes/chat_api.py
CHANGED
@@ -140,7 +140,7 @@ async def chat_completions(fastapi_request: Request, request: OpenAIRequest, api
|
|
140 |
PROJECT_ID = rotated_project_id
|
141 |
LOCATION = "global" # Fixed as per user confirmation
|
142 |
VERTEX_AI_OPENAI_ENDPOINT_URL = (
|
143 |
-
f"https://
|
144 |
f"projects/{PROJECT_ID}/locations/{LOCATION}/endpoints/openapi"
|
145 |
)
|
146 |
# base_model_name is already extracted (e.g., "gemini-1.5-pro-exp-v1")
|
|
|
140 |
PROJECT_ID = rotated_project_id
|
141 |
LOCATION = "global" # Fixed as per user confirmation
|
142 |
VERTEX_AI_OPENAI_ENDPOINT_URL = (
|
143 |
+
f"https://aiplatform.googleapis.com/v1beta1/"
|
144 |
f"projects/{PROJECT_ID}/locations/{LOCATION}/endpoints/openapi"
|
145 |
)
|
146 |
# base_model_name is already extracted (e.g., "gemini-1.5-pro-exp-v1")
|