mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
fix(utils.py): fix linting erros
This commit is contained in:
parent
f45523bb99
commit
b2b080f610
2 changed files with 2 additions and 2 deletions
|
@ -676,7 +676,7 @@ model_list:
|
||||||
- model_name: my-paid-tier
|
- model_name: my-paid-tier
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: gpt-4
|
model: gpt-4
|
||||||
api_key: sk-...
|
api_key: my-api-key
|
||||||
```
|
```
|
||||||
|
|
||||||
**Step 2: Generate a user key - enabling them access to specific models, custom model aliases, etc.**
|
**Step 2: Generate a user key - enabling them access to specific models, custom model aliases, etc.**
|
||||||
|
|
|
@ -3330,7 +3330,7 @@ def convert_to_model_response_object(response_object: Optional[dict]=None, model
|
||||||
index = embedding.get("index", idx),
|
index = embedding.get("index", idx),
|
||||||
object=embedding.get("object", "embedding")
|
object=embedding.get("object", "embedding")
|
||||||
)
|
)
|
||||||
data.append(embedding_obj)
|
data.append(embedding_obj) # type: ignore
|
||||||
model_response_object.data = data
|
model_response_object.data = data
|
||||||
|
|
||||||
if "usage" in response_object and response_object["usage"] is not None:
|
if "usage" in response_object and response_object["usage"] is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue