jas3333 / GPT-Helper

MIT License
140 stars 37 forks source link

Add gpt-3.5-turbo new model #28

Closed revbin closed 1 year ago

revbin commented 1 year ago

hi

can you please add gpt-3.5-turbo new model its the most capable GPT-3.5 model and optimized for chat at 1/10th the cost of text-davinci-003. its updated with latest model iteration.

thanks in advance

jas3333 commented 1 year ago

I created a new branch called gpt-3.5-turbo. It's functional for now, I need to remove some stuff from the config menu still a bit too tired right now. I need to mess with it more though. Seems I get a lot of "I apologize, I am an AI language model...." Just like chatGPT does. I'll mess with it some more tomorrow and see if I can improve it a little bit.

revbin commented 1 year ago

hi i modified home.js to have all model in one script with working gpt-3.5-turbo (i think so). maybe can help you and maybe you can improve that . Home.js.txt

regards

jas3333 commented 1 year ago

Alright I pushed the changes now. Still need to experiment with the prompt because it will try to complete the users question.

revbin commented 1 year ago

hi to experiment the prompt , i changed promptData to this . will test some days to see the result .

const promptData = { model: 'gpt-3.5-turbo', messages: [{ role: 'system', content: ${promptOptions} },{ role: 'user', content: ${conversation} ${question} }], stop: ['STOP'], };

jas3333 commented 1 year ago

Changing messages to

messages: [{ role: 'user', content: `${promptOptions}\n${conversation}\n${question}\n`}],

May have fixed the issue. I pushed a new update.