Jelajahi Sumber

修正提交

GXX 1 bulan lalu
induk
melakukan
676f4dc616
2 mengubah file dengan 9 tambahan dan 4 penghapusan
  1. 1 0
      .gitignore
  2. 8 4
      README.md

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+.idea/

+ 8 - 4
README.md

@@ -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端点配置使用即可!