Browse Source

feat: disable anthropic retry (#1067)

tags/0.3.19
takatost 2 years ago
parent
commit
d75e8aeafa
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      api/core/third_party/langchain/llms/anthropic_llm.py

+ 1
- 0
api/core/third_party/langchain/llms/anthropic_llm.py View File

@@ -29,6 +29,7 @@ class AnthropicLLM(ChatAnthropic):
base_url=values["anthropic_api_url"],
api_key=values["anthropic_api_key"],
timeout=values["default_request_timeout"],
max_retries=0,
connection_pool_limits=Limits(max_connections=200, max_keepalive_connections=100),
)
values["async_client"] = anthropic.AsyncAnthropic(

Loading…
Cancel
Save