Skip to content

Commit

Permalink
Merge pull request #122 from codelion/codelion-patch-1
Browse files Browse the repository at this point in the history
Update setup.py
  • Loading branch information
codelion authored Jan 2, 2025
2 parents e1c884e + a7213e8 commit 444450b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optillm/plugins/readurls_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
return modified_query, 0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="optillm",
version="0.0.17",
version="0.0.18",
packages=find_packages(),
py_modules=['optillm'],
package_data={
Expand Down

0 comments on commit 444450b

Please sign in to comment.