Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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