被加速的域名:
- github.com
- githubusercontent.com
- github.io
- githubassets.com
- huggingface.co
http://10.97.197.11:1081。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
| 区域名称 | 加速服务地址 |
|---|---|
| cn-shanghai-1 | http://10.1.80.46:1181 |
| cn-beijing-1 | http://10.97.197.11:1081 |
http://10.97.197.11:1081。
export HTTP_PROXY=http://10.1.80.46:1181
export HTTPS_PROXY=http://10.1.80.46:1181
from ppio_sandbox import PPIO
ppio = PPIO()
sandbox = ppio.sandbox.create(envs={
"http_proxy": "http://10.1.80.46:1181",
"https_proxy": "http://10.1.80.46:1181",
})
result = sandbox.commands.run("curl ipinfo.io")
print(result.stdout)
from ppio_sandbox import PPIO
ppio = PPIO()
sandbox = ppio.sandbox.create()
result = sandbox.commands.run("curl ipinfo.io", envs={
"http_proxy": "http://10.1.80.46:1181",
"https_proxy": "http://10.1.80.46:1181",
})
print(result.stdout)
from ppio_sandbox import PPIO
ppio = PPIO()
sandbox = ppio.code_interpreter.create()
result = sandbox.run_code("""
import requests
res = requests.get("https://ipinfo.io")
print(res.json())
""", envs={
"http_proxy": "http://10.1.80.46:1181",
"https_proxy": "http://10.1.80.46:1181",
})
print(result.logs.stdout[0])