Skip to content

Commit 36f0ee6

Browse files
authored
Remove unnecessary model variable assignment (#16008)
* Remove unnecessary model variable assignment Remove redundant assignment of model variable. * Remove redundant model assignment in image generation
1 parent 33371d1 commit 36f0ee6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

litellm/llms/openai/openai.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,6 @@ def embedding( # type: ignore
12031203
) -> EmbeddingResponse:
12041204
super().embedding()
12051205
try:
1206-
model = model
12071206
data = {"model": model, "input": input, **optional_params}
12081207
max_retries = max_retries or litellm.DEFAULT_MAX_RETRIES
12091208
if not isinstance(max_retries, int):
@@ -1332,7 +1331,6 @@ def image_generation(
13321331
) -> ImageResponse:
13331332
data = {}
13341333
try:
1335-
model = model
13361334
data = {"model": model, "prompt": prompt, **optional_params}
13371335
max_retries = data.pop("max_retries", 2)
13381336
if not isinstance(max_retries, int):

0 commit comments

Comments
 (0)