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

Is there a way to disable GPT-4 models? #378

Closed
haopengsong opened this issue Feb 1, 2024 · 5 comments
Closed

Is there a way to disable GPT-4 models? #378

haopengsong opened this issue Feb 1, 2024 · 5 comments

Comments

@haopengsong
Copy link

And only allow calls to GPT-3.5. THX.

@enricoros
Copy link
Owner

There's an easy way of doing this, which would be to filter the models on the backend when the user issues a refresh (Update Models) request.

In the OpenAI backend files, listModels function, a restriction could be applied. However, it's harder to link to an env variable, and may require code changes. Opinions?

@haopengsong
Copy link
Author

Wow, this works very well, just put some filtering logic within the switch statement for case openai and it worked. THanks!

@enricoros
Copy link
Owner

Wow, this works very well, just put some filtering logic within the switch statement for case openai and it worked. THanks!

Glad to hear! Making it generic for everyone would require some work and documentation, so I'm happy that you can maintain a smaller patch in your branch.

Are there other features you need to maintain on the branch? I can evaluate to see if some can be better done upstream to reduce the burden of maintaining them. Otherwise back to work, there is SO much on the roadmap!

@haopengsong
Copy link
Author

Thanks for the generosity. So far so good for now.
The only feature I tried to implement last week was to add an authentication mechnism with NextAuth so that users can do login and there would be logs in Postgres or similiar, however I didn't make it because there were config related compactible issues which I can't resolve for now. Please let me know if there will be more authentication features coming out later.

@haopengsong haopengsong reopened this Feb 2, 2024
@enricoros
Copy link
Owner

Thanks. Closing as support for Auth requires a separate ticket.

The tracking for Auth right now is #160 - we had experiments for Auth, but can't deploy it yet to the base product, as everyone will have to configure authentication backends for all of their Big-AGI installation. That said, I believe sooner rather than later we'll need it.

In the meantime, take a look at docs/deploy-authentication.md

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

2 participants