Wraps a text-only executor so it can answer requests carrying attachments.
Each attachment is handed to the first rule matching its MIME type, and the description that comes back replaces the attachment in the request.
Text-only executor or model id.
Reader executors, in priority order. "*" matches any type.
"*"
Reader prompt and cache key.
An executor that accepts attachments.
Error when rules is empty.
rules
export default createAttachmentToTextExecutor("default/glm-5.2", [ { mimeTypes: ["*"], executor: "default/gemma-4-31b" },]); Copy
export default createAttachmentToTextExecutor("default/glm-5.2", [ { mimeTypes: ["*"], executor: "default/gemma-4-31b" },]);
Wraps a text-only executor so it can answer requests carrying attachments.
Each attachment is handed to the first rule matching its MIME type, and the description that comes back replaces the attachment in the request.