Skip to content

Commit 73389b7

Browse files
committed
Fix limit must be <= 100 error in semanticscholar backend
1 parent 1e9105f commit 73389b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

litstudy/sources/semanticscholar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ def callback(doc):
195195
return docs._refine_docs(callback)
196196

197197

198-
def search_semanticscholar(query: str, *, limit: int = None, batch_size: int = 250) -> DocumentSet:
198+
def search_semanticscholar(query: str, *, limit: int = None, batch_size: int = 100) -> DocumentSet:
199199
"""Submit the given query to SemanticScholar API and return the results
200200
as a `DocumentSet`.
201201
202202
:param query: The search query to submit.
203203
:param limit: The maximum number of results to return.
204-
:param batch_size: The number of results to retrieve per request.
204+
:param batch_size: The number of results to retrieve per request. Must be at most 100.
205205
"""
206206

207207
if not query:

0 commit comments

Comments
 (0)