Revert "add support for anthropic, azure, aleph alpha, ai21, togetherai, cohere, replicate, huggingface inference endpoints, etc. "
diff --git a/.env.template b/.env.template
index 61e0b462e8..8315b6151a 100644
--- a/.env.template
+++ b/.env.template
@@ -2,15 +2,3 @@
 
 # OPENAI_API_KEY=Your personal OpenAI API key from https://platform.openai.com/account/api-keys
 OPENAI_API_KEY=$key
-
-# LiteLLM support models: Huggingface, Cohere, Replicate, Aleph Alpha, TogetherAI and more - https://docs.litellm.ai/docs/completion/supported
-AI21_API_KEY=""
-ANTHROPIC_API_KEY=""
-TOGETHERAI_API_KEY=""
-ALEPH_ALPHA_API_KEY=""
-HUGGINGFACE_API_KEY=""
-COHERE_API_KEY=""
-REPLICATE_API_KEY=""
-AZURE_API_BASE = ""
-AZURE_API_KEY = ""
-AZURE_API_VERSION = ""
\ No newline at end of file
diff --git a/gpt_engineer/ai.py b/gpt_engineer/ai.py
index 940d57eb35..db58d943f4 100644
--- a/gpt_engineer/ai.py
+++ b/gpt_engineer/ai.py
@@ -2,8 +2,7 @@
 
 import json
 import logging
-import os
-import litellm
+
 from dataclasses import dataclass
 from typing import List, Optional, Union
 
@@ -11,7 +10,7 @@
 import tiktoken
 
 from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
-from langchain.chat_models import AzureChatOpenAI, ChatOpenAI, ChatLiteLLM
+from langchain.chat_models import AzureChatOpenAI, ChatOpenAI
 from langchain.chat_models.base import BaseChatModel
 from langchain.schema import (
     AIMessage,
@@ -356,7 +355,6 @@ def create_chat_model(self, model: str, temperature) -> BaseChatModel:
     BaseChatModel
         The created chat model.
     """
-    model = "j2-mid"
     if self.azure_endpoint:
         return AzureChatOpenAI(
             openai_api_base=self.azure_endpoint,
@@ -365,12 +363,6 @@ def create_chat_model(self, model: str, temperature) -> BaseChatModel:
             openai_api_type="azure",
             streaming=True,
         )
-    elif model in litellm.model_list or model.split("/", 1)[0] in litellm.provider_list:
-        return ChatLiteLLM(
-            model=model,
-            temperature=temperature,
-            streaming=True,
-        )
     # Fetch available models from OpenAI API
     supported = [model["id"] for model in openai.Model.list()["data"]]
     if model not in supported:
diff --git a/pyproject.toml b/pyproject.toml
index 89ebd11774..fbafd9bc9a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -22,7 +22,6 @@ dependencies = [
   'tiktoken >=0.0.4',
   'tabulate == 0.9.0',
   'python-dotenv >= 0.21.0',
-  'litellm == 0.1.518',
   'langchain >=0.0.240',
 ]
 

Reverts AntonOsika/gpt-engineer#660