David Chu commited on
Commit
d3fb259
·
unverified ·
1 Parent(s): 792bd75

fix: increase semantic scholar max retries

Browse files
Files changed (1) hide show
  1. app/tools/literature.py +3 -1
app/tools/literature.py CHANGED
@@ -4,7 +4,9 @@ import httpx
4
  from tenacity import retry, stop_after_attempt, wait_random_exponential
5
 
6
 
7
- @retry(stop=stop_after_attempt(5), wait=wait_random_exponential(multiplier=0.5, max=10))
 
 
8
  def search_semantic_scholar(
9
  query: str, top_k: int = 20, min_citation_count: int = 5
10
  ) -> list[dict]:
 
4
  from tenacity import retry, stop_after_attempt, wait_random_exponential
5
 
6
 
7
+ @retry(
8
+ stop=stop_after_attempt(10), wait=wait_random_exponential(multiplier=0.5, max=10)
9
+ )
10
  def search_semantic_scholar(
11
  query: str, top_k: int = 20, min_citation_count: int = 5
12
  ) -> list[dict]: