fix(runtime): preserve case in web fetch throttle keys
This commit is contained in:
1 parent
5e54043492
commit
9136fe364e
2 files changed
+14
-5
No files matched your search
@@ -98,7 +98,8 @@ def external_lookup_signature(tool_name: str, arguments: Any) -> str | None:
|
||||
if tool_name == "web_fetch":
|
||||
url = str(arguments.get("url") or "").strip()
|
||||
if url:
|
||||
return f"web_fetch:{url.lower()}"
|
||||
# URL paths and query values can identify different resources by case.
|
||||
return f"web_fetch:{url}"
|
||||
if tool_name == "web_search":
|
||||
query = str(arguments.get("query") or arguments.get("search_term") or "").strip()
|
||||
if query:
|
||||
|
||||
Reference in new issue
Block a user