mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
fix(xai): replace leftover Any and sort TYPE_CHECKING imports
This commit is contained in:
parent
6ab547e35a
commit
b89657c029
2 changed files with 2 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ class XAIImageEditConfig(BaseImageEditConfig):
|
|||
raise ValueError("xAI image edit requires at least one reference image.")
|
||||
|
||||
n: Final = image_edit_optional_request_params.get("n")
|
||||
request: Final[dict[str, Any]] = {
|
||||
request: Final[dict[str, object]] = {
|
||||
"model": XAIModelInfo.get_base_model(model) or model,
|
||||
**({"prompt": prompt} if prompt is not None else {}),
|
||||
**({"image": image_payloads[0]} if len(image_payloads) == 1 else {"images": list(image_payloads)}),
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ from litellm.types.utils import ImageObject, ImageResponse
|
|||
|
||||
if TYPE_CHECKING:
|
||||
import tiktoken
|
||||
|
||||
from litellm.litellm_core_utils.litellm_logging import Logging as LiteLLMLoggingObj
|
||||
|
||||
_SIZE_TO_ASPECT_RATIO: Final = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue