mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
12 lines
425 B
Python
12 lines
425 B
Python
## This is a template base class to be used for adding new LLM providers via API calls
|
|
|
|
|
|
class BaseLLM:
|
|
def validate_environment(self): # set up the environment required to run the model
|
|
pass
|
|
|
|
def completion(self): # logic for parsing in - calling - parsing out model completion calls
|
|
pass
|
|
|
|
def embedding(self): # logic for parsing in - calling - parsing out model embedding calls
|
|
pass
|