mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Merge pull request #1200 from MateoCamara/explicit-args-acomplete
feat: added explicit args to acomplete
This commit is contained in:
commit
2433d6c613
3 changed files with 92 additions and 8 deletions
|
@ -14,6 +14,7 @@ import subprocess, os
|
|||
import litellm, openai
|
||||
import itertools
|
||||
import random, uuid, requests
|
||||
from functools import wraps
|
||||
import datetime, time
|
||||
import tiktoken
|
||||
import uuid
|
||||
|
@ -1972,6 +1973,7 @@ def client(original_function):
|
|||
# [Non-Blocking Error]
|
||||
pass
|
||||
|
||||
@wraps(original_function)
|
||||
def wrapper(*args, **kwargs):
|
||||
start_time = datetime.datetime.now()
|
||||
result = None
|
||||
|
@ -2166,6 +2168,7 @@ def client(original_function):
|
|||
e.message += f"\n Check the log in your dashboard - {liteDebuggerClient.dashboard_url}"
|
||||
raise e
|
||||
|
||||
@wraps(original_function)
|
||||
async def wrapper_async(*args, **kwargs):
|
||||
start_time = datetime.datetime.now()
|
||||
result = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue