hobk / chatgpt-telebot

基于chatGPT使用nodejs搭建的telegram机器人
195 stars 55 forks source link

model参数传不过去? #7

Open h1xy opened 1 year ago

h1xy commented 1 year ago

Debug on发现CHATGPT_MODEL = "xxx"不管怎么改,实际用的都是text-davinci-003,会扣credit.

root@oracle-seoul-arm:~/chatgpt-telebot# node index.js 2/6/2023, 5:12:08 AM --Bot has been started... 2/6/2023, 5:12:12 AM --收到来自id: 1051339668 的消息: test sendMessage (21 tokens) { max_tokens: 1000, model: 'text-davinci-003', temperature: 0.7, presence_penalty: 0.6, stop: [ '<|im_end|>' ], prompt: 'undefinedUser:\n\ntest<|im_end|>\n\nChatGPT:\n', stream: false } { id: 'cmpl-6ggazotiFsa7f0PpDiQiHqoUIYEfs', object: 'text_completion', created: 1675631533, model: 'text-davinci-003', choices: [ { text: "Sorry, I don't know who you are. Please introduce yourself.", index: 0, logprobs: null, finish_reason: 'stop' } ], usage: { prompt_tokens: 21, completion_tokens: 14, total_tokens: 35 } } 2/6/2023, 5:12:14 AM --AI回复:< test >: Sorry, I don't know who you are. Please introduce yourself.

hobk commented 1 year ago

改一下index.js 的第11行试一下呢