Skip to content

Improve error messages for DIAL attachment links when DIAL_URL is unset #326

@adubovik

Description

@adubovik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions