Skip to content

Commit

Permalink
[easy][py] remove unused classes in openai.py (#729)
Browse files Browse the repository at this point in the history
[easy][py] remove unused classes in openai.py




couple of classes were defined but not used. Tested this by "find all
references" on each class. No results showed up, so its safe to remove
them

## Testplan

<img width="527" alt="Screenshot 2024-01-03 at 12 21 40 PM"
src="https://github.com/lastmile-ai/aiconfig/assets/141073967/33382f79-824c-4b88-975a-b12f09daa379">
<img width="575" alt="Screenshot 2024-01-03 at 12 21 57 PM"
src="https://github.com/lastmile-ai/aiconfig/assets/141073967/f87948fd-324e-4854-b4f9-28861e123f44">
<img width="514" alt="Screenshot 2024-01-03 at 12 22 13 PM"
src="https://github.com/lastmile-ai/aiconfig/assets/141073967/47398fbd-cd78-4f97-b894-f938ef008bda">
  • Loading branch information
Ankush-lastmile authored Jan 3, 2024
2 parents 8b10d3c + 8f0055e commit 59a9a0c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions python/src/aiconfig/default_parsers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,24 +366,6 @@ def id(self) -> str:
return self.model_id


class GPT4Parser(DefaultOpenAIParser):
def __init__(self):
model_id = "gpt-4"
super().__init__(model_id)


class GPT3TurboParser(DefaultOpenAIParser):
def __init__(self):
model_id = "gpt-3.5-turbo"
super().__init__(model_id)


class ChatGPTParser(DefaultOpenAIParser):
def __init__(self):
model_id = "ChatGPT"
super().__init__(model_id)


def reduce(acc, delta):
acc = copy.deepcopy(acc)

Expand Down

0 comments on commit 59a9a0c

Please sign in to comment.