Skip to content

Commit

Permalink
Add option to disable gpt-4 for public deployment (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Mar 29, 2024
1 parent df1907a commit c72c87f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/server/models.py
Expand Up @@ -14,10 +14,11 @@ def get_supported_models():
"chat_model": ChatOpenAI(model="gpt-3.5-turbo", temperature=0),
"description": "GPT-3.5 Turbo",
}
models["gpt-4-0125-preview"] = {
"chat_model": ChatOpenAI(model="gpt-4-0125-preview", temperature=0),
"description": "GPT-4 0125 Preview",
}
if os.environ.get("DISABLE_GPT4", "").lower() != "true":
models["gpt-4-0125-preview"] = {
"chat_model": ChatOpenAI(model="gpt-4-0125-preview", temperature=0),
"description": "GPT-4 0125 Preview",
}
if "FIREWORKS_API_KEY" in os.environ:
models["fireworks"] = {
"chat_model": ChatFireworks(
Expand Down

0 comments on commit c72c87f

Please sign in to comment.