Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

set default to official ChatGPT model from OpenAI #122

Merged
merged 6 commits into from
Mar 6, 2023

Conversation

max298
Copy link
Collaborator

@max298 max298 commented Mar 2, 2023

This is kind of a "dangerous" change, as the OpenAI accounts of our users will be charged by simply updating the version to this one.

I'm not sure if we should adjust the readme any further in order to make this clear, so everyone knows the usage is no longer free (and most likely will never become free again at this point).

Also closes #120 and #119

@max298 max298 requested a review from bertybuttface March 2, 2023 15:11
@bertybuttface
Copy link
Collaborator

I think we should break something deliberately before merging this. Perhaps change the namespace of the package?

@Dual-0
Copy link

Dual-0 commented Mar 2, 2023

maybe change the variable naming?
CHATGPT_MODEL=

@bertybuttface
Copy link
Collaborator

maybe change the variable naming?
CHATGPT_MODEL=

Yeah that could do it. Something that requires user intervention.

@max298
Copy link
Collaborator Author

max298 commented Mar 3, 2023

I like that idea! I'll implement the change shortly.

@max298
Copy link
Collaborator Author

max298 commented Mar 3, 2023

I just noticed the env variable is optional and has a default, so a change of the variable will most likely not even be noticed by our users if they didn't change the model.

@bertybuttface
Copy link
Collaborator

bertybuttface commented Mar 3, 2023

Lets make it a required field with no default and adjust the name.

@max298
Copy link
Collaborator Author

max298 commented Mar 3, 2023

I've also added an log entry if the new CHATGPT_API_MODEL is unset resulting in the bot not starting.

I think this is now ready for review 😃

Copy link
Collaborator

@bertybuttface bertybuttface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good thanks for taking the time to make this all work. Variable name looks good and sensible to me. LGTM.

README.md Outdated Show resolved Hide resolved
@bertybuttface bertybuttface merged commit 1b2ff20 into matrixgpt:main Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Will you support gpt-3.5-turbo?
3 participants