get to set embeddings to true. If not set, "createEmbedding" will crash the app
        embeddings: true,
        pooling_type: 'LLAMA_POOLING_TYPE_MEAN', // depend on the model, you will need to change this
      });

      // optionally, you can switch between embeddings and generation mode whenever you want:
      // await wllama.setOptions({ embeddings: false });

      setEmbdDisable(false);

      elemBtnEmbeddings.onclick = async () => {
        setEmbdDisable(true);
        const embdA = await wllam