mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Remove unnecessary model variable assignment (#16008)
* Remove unnecessary model variable assignment Remove redundant assignment of model variable. * Remove redundant model assignment in image generation
This commit is contained in:
parent
33371d18f4
commit
36f0ee6ff9
1 changed files with 0 additions and 2 deletions
|
|
@ -1203,7 +1203,6 @@ class OpenAIChatCompletion(BaseLLM, BaseOpenAILLM):
|
|||
) -> EmbeddingResponse:
|
||||
super().embedding()
|
||||
try:
|
||||
model = model
|
||||
data = {"model": model, "input": input, **optional_params}
|
||||
max_retries = max_retries or litellm.DEFAULT_MAX_RETRIES
|
||||
if not isinstance(max_retries, int):
|
||||
|
|
@ -1332,7 +1331,6 @@ class OpenAIChatCompletion(BaseLLM, BaseOpenAILLM):
|
|||
) -> ImageResponse:
|
||||
data = {}
|
||||
try:
|
||||
model = model
|
||||
data = {"model": model, "prompt": prompt, **optional_params}
|
||||
max_retries = data.pop("max_retries", 2)
|
||||
if not isinstance(max_retries, int):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue