|
@@ -1,18 +1,22 @@
|
|
|
1.修改源代码中你想代理的端点和代理配置:
|
|
|
# 修改为你自己的翻墙代理配置
|
|
|
+
|
|
|
+```
|
|
|
SOCKS_PROXY = 'socks5h://host.docker.internal:20170'
|
|
|
proxies = {
|
|
|
'http': SOCKS_PROXY,
|
|
|
'https': SOCKS_PROXY
|
|
|
}
|
|
|
-
|
|
|
+```
|
|
|
# 修改为你想代理的openai端点
|
|
|
-API_BASE = "https://api.groq.com/openai"
|
|
|
|
|
|
+```
|
|
|
+API_BASE = "https://api.groq.com/openai"
|
|
|
+```
|
|
|
使用方法:
|
|
|
-
|
|
|
+```
|
|
|
pip install requirements.txt
|
|
|
|
|
|
python proxy.py
|
|
|
-
|
|
|
+```
|
|
|
将日志中输出的url作为openai端点配置使用即可!
|