Explorar el Código

fix: gemini timeout error (#4955)

Joe hace 10 meses
padre
commit
5cdb95be1f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      api/core/model_runtime/model_providers/google/llm/llm.py

+ 1 - 0
api/core/model_runtime/model_providers/google/llm/llm.py

@@ -204,6 +204,7 @@ class GoogleLargeLanguageModel(LargeLanguageModel):
             stream=stream,
             safety_settings=safety_settings,
             tools=self._convert_tools_to_glm_tool(tools) if tools else None,
+            request_options={"timeout": 600}
         )
 
         if stream: