|
|
|
@ -80,9 +80,7 @@ def to_prompt_message_content(
|
|
|
|
# Check if file type is supported
|
|
|
|
# Check if file type is supported
|
|
|
|
if f.type not in prompt_class_map:
|
|
|
|
if f.type not in prompt_class_map:
|
|
|
|
# For unsupported file types, return a text description
|
|
|
|
# For unsupported file types, return a text description
|
|
|
|
return TextPromptMessageContent(
|
|
|
|
return TextPromptMessageContent(data=f"[Unsupported file type: {f.filename} ({f.type.value})]")
|
|
|
|
data=f"[Unsupported file type: {f.filename} ({f.type.value})]"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Process supported file types
|
|
|
|
# Process supported file types
|
|
|
|
params = {
|
|
|
|
params = {
|
|
|
|
|