Open Pacman1988 opened 2 months ago
Do you do it for yourself, or to expose this to other users? You can achieve this with source code modifications today, but probably a comma-separated list in env vars could work too (we're just having too many env vars).
Something like OPENAI_API_FILTER=model1,model2 ?
I host an docker instance for some other users and an unexperienced user used Turbo-4 instead of gpt-3.5 and our credit was gone.
Something like OPENAI_API_FILTER=model1,model2 ?
Yes, that would be nice or maybe OPENAI_ALLOWED_MODELS= or so.
Is there a way to allow only specific models with an .env variable or setting?
For example: I only want gpt-4o or gpt3-5-turbo on my instance and no gpt4-turbo, because of the model costs.