Skip to content

Commit

Permalink
update: openai_adapter.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
stonekim committed Jul 23, 2024
1 parent 3c1137c commit 265aaff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cookbook/openai_adapter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@
"import os\n",
"import subprocess as sp\n",
"\n",
"# 该环境变量用于绕过 OpenAI 对 OpenAI API Key 的检查\n",
"os.environ[\"OPENAI_API_KEY\"] = \"FAKE_KEY\"\n",
"# 需要将 OPENAI 的 API 请求重定向到本地的服务\n",
"os.environ[\"OPENAI_BASE_URL\"] = \"http://127.0.0.1:8001/v1\" # 修改为本地 OpenAI API 地址\n",
"os.environ[\"OPENAI_BASE_URL\"] = \"http://127.0.0.1:8001/v1\" # 修改为本地 OpenAI 适配器地址\n",
"\n",
"# 以下环境变量供千帆 OpenAI Adapter:\n",
"# 使用安全认证的access_key/secret_key:\n",
Expand Down

0 comments on commit 265aaff

Please sign in to comment.