mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 08:48:19 +00:00
Update bibliography.py
This commit is contained in:
parent
fa98d94184
commit
cb85e2643e
@ -14,7 +14,7 @@ from typing import List, Optional, Any, Tuple, Dict
|
||||
from lollms.utilities import PackageManager, find_first_available_file_index, discussion_path_to_url
|
||||
|
||||
# ascii_colors offers advanced console coloring and bug tracing
|
||||
from ascii_colors import trace_exception
|
||||
from ascii_colors import trace_exception, ASCIIColors
|
||||
|
||||
# Import Client from lollms.client_session
|
||||
from lollms.client_session import Client
|
||||
@ -43,6 +43,7 @@ def arxiv_pdf_search(query: str, max_results: Optional[int] = 5, sort_by: Option
|
||||
if author:
|
||||
url += f'&author={author}'
|
||||
|
||||
ASCIIColors.multicolor(["URL:",url],[ASCIIColors.red, ASCIIColors.yellow])
|
||||
response = requests.get(url)
|
||||
response.raise_for_status()
|
||||
|
||||
@ -355,4 +356,4 @@ def search_and_rank_function(llm, score_threshold:float, client: Optional[Any] =
|
||||
{"name": "end_date", "type": "str", "description": "The end date for the search results in the format YYYY-MM-DD. (Optional)", "optional": True},
|
||||
{"name": "author", "type": "str", "description": "The author name for the search results. (Optional)", "optional": True},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user