Skip to content

Commit 444450b

Browse files
authored
Merge pull request #122 from codelion/codelion-patch-1
Update setup.py
2 parents e1c884e + a7213e8 commit 444450b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

optillm/plugins/readurls_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def extract_urls(text: str) -> List[str]:
2525
def fetch_webpage_content(url: str, max_length: int = 100000) -> str:
2626
try:
2727
headers = {
28-
'User-Agent': 'optillm/0.0.17 (https://github.com/codelion/optillm)'
28+
'User-Agent': 'optillm/0.0.18 (https://github.com/codelion/optillm)'
2929
}
3030

3131
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
106106
domain = urlparse(url).netloc
107107
modified_query = modified_query.replace(url, f"{url} [Content from {domain}: {content}]")
108108
# print(modified_query)
109-
return modified_query, 0
109+
return modified_query, 0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="optillm",
5-
version="0.0.17",
5+
version="0.0.18",
66
packages=find_packages(),
77
py_modules=['optillm'],
88
package_data={

0 commit comments

Comments
 (0)