Skip to content

适配RWKV Runner

binary-husky edited this page Jul 27, 2023 · 2 revisions

1 启动RWKV Runner,加载模型,直到看到:

image

2 设置gpt-academic中的参数(修改环境变量 或者 config.py)

LLM_MODEL = "gpt-3.5-turbo"
API_KEY = 'sk-PjDisw70wxoSRoiFB4A6B11693614251A6C59825D06631E0'   # 随意设定一个key
API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions":"http://127.0.0.1:8000/v1/chat/completions"}  # 注意端口号

3 运行!