mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 19:55:58 +08:00
feat: disable anthropic retry (#1067)
This commit is contained in:
parent
2eba98a465
commit
d75e8aeafa
@ -29,6 +29,7 @@ class AnthropicLLM(ChatAnthropic):
|
|||||||
base_url=values["anthropic_api_url"],
|
base_url=values["anthropic_api_url"],
|
||||||
api_key=values["anthropic_api_key"],
|
api_key=values["anthropic_api_key"],
|
||||||
timeout=values["default_request_timeout"],
|
timeout=values["default_request_timeout"],
|
||||||
|
max_retries=0,
|
||||||
connection_pool_limits=Limits(max_connections=200, max_keepalive_connections=100),
|
connection_pool_limits=Limits(max_connections=200, max_keepalive_connections=100),
|
||||||
)
|
)
|
||||||
values["async_client"] = anthropic.AsyncAnthropic(
|
values["async_client"] = anthropic.AsyncAnthropic(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user