mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +00:00
fix(vertex_ai/gemini): clarify mime-type error message string concatenation
Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
parent
d5f3224309
commit
d9672ebc05
1 changed files with 3 additions and 3 deletions
|
|
@ -845,10 +845,10 @@ def _gemini_convert_messages_with_history( # noqa: PLR0915
|
|||
except Exception as e:
|
||||
raise litellm.BadRequestError(
|
||||
message=(
|
||||
"Unable to determine mime type for file: "
|
||||
f"Unable to determine mime type for file: "
|
||||
f"{file_id or 'provided data'}, set this explicitly "
|
||||
f"using message[{msg_i}].content[{element_idx}]."
|
||||
"file.format (or file.mime_type/content_type). "
|
||||
f"using message[{msg_i}].content[{element_idx}].file.format "
|
||||
f"(or file.mime_type/content_type). "
|
||||
f"Original error: {str(e)}"
|
||||
),
|
||||
model=model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue