xtekky / chatgpt-clone

ChatGPT interface with better UI
https://g4f.ai
GNU General Public License v3.0
3.43k stars 1.03k forks source link

how to update the model "gpt-3.5-turbo to gpt-3.5-turbo-16k" #109

Open zululu2023 opened 1 year ago

zululu2023 commented 1 year ago

According to OpenAI's latest policy, the token limit for gpt-3.5-turbo has been increased from 4,000 tokens to a maximum of 16,000 tokens for the gpt-3.5-turbo-16k model. In our current files, we need to make the corresponding parameter adjustments. Could you please let me know which specific files and code you are referring to so that I can provide you with the necessary instructions? Thank you!

Remowylliams commented 11 months ago

I believe I got this working by modifying the server/config.py orig: models = { 'text-gpt-0040-render-sha-0': 'gpt-4', 'text-gpt-0035-render-sha-0': 'gpt-3.5-turbo', 'text-gpt-0035-render-sha-0301': 'gpt-3.5-turbo-0314', 'text-gpt-0040-render-sha-0314': 'gpt-4-0314', }

New:

models = { 'text-gpt-0040-render-sha-0': 'gpt-4', 'text-gpt-0035-render-sha-0': 'gpt-3.5-turbo', 'text-gpt-0035-render-sha-0': 'gpt-3.5-turbo-16k', 'text-gpt-0035-render-sha-0301': 'gpt-3.5-turbo-0314', 'text-gpt-0040-render-sha-0314': 'gpt-4-0314', } Then start as normal

sockthem commented 4 months ago

how to update to new gpt-4-0125-preview model?