adding lite debugger integration

This commit is contained in:
Krrish Dholakia 2023-08-20 15:06:50 -07:00
parent 02a6eb66ce
commit a1ad773667
14 changed files with 169 additions and 10 deletions

View file

@ -707,9 +707,10 @@ def embedding(model, input=[], azure=False, force_timeout=60, litellm_call_id=No
return response
except Exception as e:
## LOGGING
logging.post_call(input=input, api_key=openai.api_key, original_response=e)
## Map to OpenAI Exception
raise exception_type(model=model, original_exception=e, custom_llm_provider="azure" if azure==True else None)
raise e
####### HELPER FUNCTIONS ################