Neutrome SDK reference
    Preparing search index...

    Function createAttachmentToTextExecutor

    • 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.

      Parameters

      Returns Executor

      An executor that accepts attachments.

      Error when rules is empty.

      export default createAttachmentToTextExecutor("default/glm-5.2", [
      { mimeTypes: ["*"], executor: "default/gemma-4-31b" },
      ]);