This commit is contained in:
Slipstream 2025-04-29 17:20:41 -06:00
parent d5fd3ced13
commit 3e79e71a80
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -326,7 +326,7 @@ async def call_google_genai_api_with_retry(
# Note: model_name should include the 'projects/.../locations/.../endpoints/...' path for custom models
# or just 'models/model-name' for standard models.
try:
model = genai_client.get_model(model_name) # Use get_model to ensure it exists
model = "projects/1079377687568/locations/us-central1/endpoints/6677946543460319232" # Use get_model to ensure it exists
if not model:
raise ValueError(f"Could not retrieve model: {model_name}")
except Exception as model_e: