mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
chore(videos): annotate untyped-boundary casts with cast-ok reasons for type-discipline gate
This commit is contained in:
parent
2df6dced0a
commit
b9b2dd404a
1 changed files with 3 additions and 3 deletions
|
|
@ -108,9 +108,9 @@ async def video_generation(
|
|||
user_api_base=user_api_base,
|
||||
version=version,
|
||||
)
|
||||
request_data = cast("dict[str, object]", data)
|
||||
request_data = cast("dict[str, object]", data) # cast-ok: _read_request_body returns an untyped Dict
|
||||
return encode_video_id_in_response(
|
||||
response=cast(object, response),
|
||||
response=cast(object, response), # cast-ok: base_process_llm_request returns Any
|
||||
fallback_provider=coerce_optional_str(request_data.get("custom_llm_provider")),
|
||||
fallback_model_id=coerce_optional_str(request_data.get("model")),
|
||||
)
|
||||
|
|
@ -298,7 +298,7 @@ async def video_status(
|
|||
version=version,
|
||||
)
|
||||
return encode_video_id_in_response(
|
||||
response=cast(object, response),
|
||||
response=cast(object, response), # cast-ok: base_process_llm_request returns Any
|
||||
fallback_provider=custom_llm_provider,
|
||||
fallback_model_id=model_id_from_decoded,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue