Update factories.py to allow the usage of the request timeout ChatOpe… (#1115)

Update factories.py to allow the usage of the request timeout ChatOpenAI parameter

allow the usage of the request timeout ChatOpenAI parameter

Co-authored-by: Alonso Guevara <alonsog@microsoft.com>
This commit is contained in:
Roberto Corno 2024-09-12 21:51:48 +02:00 committed by GitHub
parent 7b8f5ba51f
commit fcfa7b1329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,7 @@ def get_llm(config: GraphRagConfig) -> ChatOpenAI:
deployment_name=config.llm.deployment_name,
api_version=config.llm.api_version,
max_retries=config.llm.max_retries,
request_timeout=config.llm.request_timeout,
)