mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 21:33:56 +02:00
Disable langchain retries
This commit is contained in:
@@ -44,6 +44,7 @@ class AzureGPT(LangChainChatLLM):
|
|||||||
"presence_penalty": 0,
|
"presence_penalty": 0,
|
||||||
},
|
},
|
||||||
verbose=should_be_verbose(),
|
verbose=should_be_verbose(),
|
||||||
|
max_retries=0, # retries are handled outside of langchain
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@@ -34,6 +34,7 @@ class OpenAIGPT(LangChainChatLLM):
|
|||||||
"presence_penalty": 0,
|
"presence_penalty": 0,
|
||||||
},
|
},
|
||||||
verbose=should_be_verbose(),
|
verbose=should_be_verbose(),
|
||||||
|
max_retries=0, # retries are handled outside of langchain
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user