fix: 支持 HTTP 协议和内网地址访问,修复聊天 URL 缺协议前缀问题
- validate_public_url 默认允许 http 和 https 协议 - 移除 _is_forbidden_ip_address 中 is_private 和 is_site_local 拦截,允许内网 IP - validate_public_url 中无 scheme 时自动补全 http:// - normalize_openai_base_url 中无协议前缀时自动补全 http:// - pyproject.toml 添加 httpx[socks] 依赖以支持 SOCKS 代理
This commit is contained in:
@@ -15,7 +15,7 @@ dependencies = [
|
||||
"faiss-cpu>=1.11.0",
|
||||
"fastapi>=0.116.0",
|
||||
"google-genai>=1.39.1",
|
||||
"httpx",
|
||||
"httpx[socks]",
|
||||
"jieba>=0.42.1",
|
||||
"json-repair>=0.47.6",
|
||||
"maim-message>=0.6.2",
|
||||
|
||||
Reference in New Issue
Block a user