Suppose DIAL_URL is unset and DIAL_USE_FILE_STORAGE=False.
It's ok for attachments in responses, because these attachments could always be encoded in base64 by the adapter.
It's not ok when URL attachment is part of chat completion or embedding request, because the adapter isn't able to read such an attachment.
Currently, the adapter throws the following unhelpful error message when it fails to download a DIAL attachment link:
ERROR: | 2025-11-11 15:10:04 | aidial_adapter_openai | 1 | Failed to download attachment: Request URL is missing an 'http://' or 'https://' protocol.
The error message should be improved. E.g.
ERROR: cannot download DIAL attachment link ${link}, because DIAL_URL is unset.
Suppose
DIAL_URLis unset andDIAL_USE_FILE_STORAGE=False.It's ok for attachments in responses, because these attachments could always be encoded in base64 by the adapter.
It's not ok when URL attachment is part of chat completion or embedding request, because the adapter isn't able to read such an attachment.
Currently, the adapter throws the following unhelpful error message when it fails to download a DIAL attachment link:
The error message should be improved. E.g.