the course of openai api
https://www.anaconda.com/products/individual
conda create -n openai_api_python python=3.11
conda activate openai_api_python
pip install -r requirements.txt
开了个50刀额度的token,openai的所有接口都能用,免翻墙使用。
域名:https://key.wenwen-ai.com
key:sk-6V2exWFBSa2lmuZ7C0D773D1BaEd4fB7A1B6A0A265D550C6
# 代码运行前,需要设置环境变量
import os
os.environ['OPENAI_BASE_URL'] = 'https://key.wenwen-ai.com/v1'
os.environ['OPENAI_API_KEY'] = 'sk-6V2exWFBSa2lmuZ7C0D773D1BaEd4fB7A1B6A0A265D550C6'