mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
refactor: fix linting errors
This commit is contained in:
parent
de58dcc016
commit
102de97960
2 changed files with 8 additions and 3 deletions
|
@ -5,7 +5,7 @@ import requests
|
|||
import time
|
||||
from typing import Callable, Optional
|
||||
import litellm
|
||||
from litellm.utils import ModelResponse, get_secret, Usage
|
||||
from litellm.utils import ModelResponse, EmbeddingResponse, get_secret, Usage
|
||||
import sys
|
||||
from copy import deepcopy
|
||||
import httpx
|
||||
|
@ -198,7 +198,7 @@ def completion(
|
|||
|
||||
def embedding(model: str,
|
||||
input: list,
|
||||
model_response: ModelResponse,
|
||||
model_response: EmbeddingResponse,
|
||||
print_verbose: Callable,
|
||||
encoding,
|
||||
logging_obj,
|
||||
|
@ -262,7 +262,7 @@ def embedding(model: str,
|
|||
ContentType="application/json",
|
||||
Body={data},
|
||||
CustomAttributes="accept_eula=true",
|
||||
)"""
|
||||
)""" # type: ignore
|
||||
logging_obj.pre_call(
|
||||
input=input,
|
||||
api_key="",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue