Closed saber28 closed 5 months ago
{
"model": "rwkv5-7b-v2",
"prompt": ["\\nInstruction: Translate the input text into Chinese\\n\\nInput: Hi\\n\\nResponse:"],
"temperature":1,
"frequency_penalty":0.3,
"penalty_decay":0.9982686325973925,
"stop": [
"\\u0000",
"\\n\\n",
"User:"
],
"stream": true,
"top_p": 0.1
}
这个请求是OK的
一、prompt: 是String数组,二、temperature要有
prompt应当是字符串列表 Prompt should be list of str
升级到v0.3.25后,用openai的API库发送请求,返回HTTP400。但在v0.3.20以下代码能正常工作 代码:
POST请求:
Path:/api/oai/completions
Header:
Payload:
回应:
配置文件:
控制台信息