Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I change the model and temperature? #39

Open
han3on opened this issue Mar 7, 2023 · 5 comments
Open

How can I change the model and temperature? #39

han3on opened this issue Mar 7, 2023 · 5 comments
Assignees

Comments

@han3on
Copy link

han3on commented Mar 7, 2023

I modified line 31 and 41 in openai_parser.py, replaced gpt-3.5-turbo-0301 with gpt-3.5-turbo, and restart the bot, I found it on OpenAI daily usage breakdown page the bot still using model gpt-3.5-turbo-0301. How can I change the model? Thanks.

@han3on
Copy link
Author

han3on commented Mar 7, 2023

BTW, how to set temperature and max tokens?

@emperorjoker
Copy link

same here.

@flynnoct
Copy link
Owner

flynnoct commented Mar 7, 2023

I think the way you change the model is correct. Currently I have no idea why it will show gpt-3.5-turbo-0301 in OpenAI's usage page. Maybe wait for 1 day or 2 it will be fine?

I will also check my status and any updates will be published here.

@flynnoct flynnoct self-assigned this Mar 7, 2023
@han3on
Copy link
Author

han3on commented Mar 8, 2023

Morning @flynnoct, would you consider adding lines for setting temperature or other options, as I know the temperature option is default to 1, and for temperature, higher values like 0.8 will make the output more random.

@han3on han3on changed the title How can I change the model? How can I change the model and temperature? Mar 10, 2023
@han3on
Copy link
Author

han3on commented Mar 10, 2023

I added new lines temperature = 0.3, under line response = openai.ChatCompletion.create(model = "gpt-3.5-turbo",, and then restart the bot, I think it works on the temperature I set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants