Files
llm-functions/agents/demo/tools.py
2024-07-29 17:26:36 +08:00

10 lines
199 B
Python

import urllib.request
def get_ipinfo():
"""
Get the ip info
"""
with urllib.request.urlopen("https://httpbin.org/ip") as response:
data = response.read()
return data.decode('utf-8')