Skip to content

Commit a7213e8

Browse files
authored
Update readurls_plugin.py
1 parent 6f96814 commit a7213e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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

0 commit comments

Comments
 (0)