Skip to content

Commit 14ad8a1

Browse files
Increased Gemini API timeout to 5 minutes because we hit DEADLINE_EXCEEDED
1 parent 2603720 commit 14ad8a1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ LLM_WIRE_LOG_ENABLED=0
7272
# PhotoBuilder: set to 1 to use fake/simulated adapters instead of real OpenAI calls
7373
PHOTO_BUILDER_SIMULATE_IMAGE_PROMPT_GENERATION=0
7474
PHOTO_BUILDER_SIMULATE_IMAGE_GENERATION=0
75+
PHOTO_BUILDER_GEMINI_TIMEOUT_SECONDS=300
7576
LLM_CONTENT_EDITOR_SIMULATE=0
7677
###< sitebuilder/llm-wire-log ###
7778

config/services.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ parameters:
2121
docker.host_base_path: "%env(default:docker.host_base_path_default:HOST_PROJECT_PATH)%"
2222

2323
# PhotoBuilder image generation request timeouts (in seconds)
24-
photo_builder.gemini_timeout_seconds: 120
24+
photo_builder.gemini_timeout_seconds_default: 300
25+
photo_builder.gemini_timeout_seconds: "%env(default:photo_builder.gemini_timeout_seconds_default:int:PHOTO_BUILDER_GEMINI_TIMEOUT_SECONDS)%"
2526
photo_builder.openai_timeout_seconds: 120
2627
llm_content_editor.simulate: "%env(bool:LLM_CONTENT_EDITOR_SIMULATE)%"
2728

0 commit comments

Comments
 (0)