forked from phoenix/litellm-mirror
(feat) logging: for embedding openai.py
This commit is contained in:
parent
7cf029d677
commit
77a9eb8a77
1 changed files with 2 additions and 1 deletions
|
@ -331,8 +331,9 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
logging_obj.pre_call(
|
||||
input=input,
|
||||
api_key=api_key,
|
||||
additional_args={"complete_input_dict": data},
|
||||
additional_args={"complete_input_dict": data, "api_base": api_base},
|
||||
)
|
||||
|
||||
## COMPLETION CALL
|
||||
response = openai_client.embeddings.create(**data) # type: ignore
|
||||
## LOGGING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue