pull/944/head
harshalmore31 2 days ago
parent 81a6040527
commit 0105c95851

@ -544,21 +544,12 @@ class LiteLLM:
""" """
return self.run(task, *args, **kwargs) return self.run(task, *args, **kwargs)
async def arun( async def arun(self, task: str, *args, **kwargs):
self,
task: str,
audio: Optional[str] = None,
img: Optional[str] = None,
*args,
**kwargs
):
""" """
Run the LLM model asynchronously for the given task. Run the LLM model asynchronously for the given task.
Args: Args:
task (str): The task to run the model for. task (str): The task to run the model for.
audio (str, optional): Audio input if any. Defaults to None.
img (str, optional): Image input if any. Defaults to None.
*args: Additional positional arguments. *args: Additional positional arguments.
**kwargs: Additional keyword arguments. **kwargs: Additional keyword arguments.
@ -566,7 +557,7 @@ class LiteLLM:
str: The content of the response from the model. str: The content of the response from the model.
""" """
try: try:
messages = self._prepare_messages(task=task, img=img) messages = self._prepare_messages(task)
# Prepare common completion parameters # Prepare common completion parameters
completion_params = { completion_params = {

Loading…
Cancel
Save