From 6f96814b6cbfe47537778ef8c48690c25db52199 Mon Sep 17 00:00:00 2001 From: Asankhaya Sharma Date: Thu, 2 Jan 2025 21:49:09 +0800 Subject: [PATCH 1/2] Update setup.py - bump version for new release --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 73c9b9ec..40a19e9c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="optillm", - version="0.0.17", + version="0.0.18", packages=find_packages(), py_modules=['optillm'], package_data={ From a7213e8468c3dd8c07d46fc80199ec64b743a50d Mon Sep 17 00:00:00 2001 From: Asankhaya Sharma Date: Thu, 2 Jan 2025 21:50:22 +0800 Subject: [PATCH 2/2] Update readurls_plugin.py --- optillm/plugins/readurls_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optillm/plugins/readurls_plugin.py b/optillm/plugins/readurls_plugin.py index 42a6b189..6fa44755 100644 --- a/optillm/plugins/readurls_plugin.py +++ b/optillm/plugins/readurls_plugin.py @@ -25,7 +25,7 @@ def extract_urls(text: str) -> List[str]: def fetch_webpage_content(url: str, max_length: int = 100000) -> str: try: headers = { - 'User-Agent': 'optillm/0.0.17 (https://github.com/codelion/optillm)' + 'User-Agent': 'optillm/0.0.18 (https://github.com/codelion/optillm)' } response = requests.get(url, headers=headers, timeout=10) @@ -106,4 +106,4 @@ def run(system_prompt, initial_query: str, client=None, model=None) -> Tuple[str domain = urlparse(url).netloc modified_query = modified_query.replace(url, f"{url} [Content from {domain}: {content}]") # print(modified_query) - return modified_query, 0 \ No newline at end of file + return modified_query, 0