mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
refactor: fix linting
This commit is contained in:
parent
d962d5d4c0
commit
b24c9b4cbf
1 changed files with 1 additions and 1 deletions
|
@ -558,7 +558,7 @@ def _embedding_func_single(
|
||||||
# data = json.dumps(data)
|
# data = json.dumps(data)
|
||||||
elif provider == "cohere":
|
elif provider == "cohere":
|
||||||
inference_params["input_type"] = inference_params.get("input_type", "search_document") # aws bedrock example default - https://us-east-1.console.aws.amazon.com/bedrock/home?region=us-east-1#/providers?model=cohere.embed-english-v3
|
inference_params["input_type"] = inference_params.get("input_type", "search_document") # aws bedrock example default - https://us-east-1.console.aws.amazon.com/bedrock/home?region=us-east-1#/providers?model=cohere.embed-english-v3
|
||||||
data = {"texts": [input], **inference_params}
|
data = {"texts": [input], **inference_params} # type: ignore
|
||||||
body = json.dumps(data).encode("utf-8")
|
body = json.dumps(data).encode("utf-8")
|
||||||
## LOGGING
|
## LOGGING
|
||||||
request_str = f"""
|
request_str = f"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue