# Cannot read properties of undefined (reading '0') Embeddings OpenAI

**URL:** <https://community.n8n.io/t/cannot-read-properties-of-undefined-reading-0-embeddings-openai/97671>\
**Category:** Questions\
**Tags:** embeddings\
**Created:** [April 6, 2025, 6:34pm UTC](https://community.n8n.io/t/cannot-read-properties-of-undefined-reading-0-embeddings-openai/97671 "2025-04-06T18:34:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexguzmenko](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/alexguzmenko/32/65332_2.png) [@alexguzmenko](https://community.n8n.io/u/alexguzmenko)\
**Post date:** [April 6, 2025, 6:34pm UTC](https://community.n8n.io/t/cannot-read-properties-of-undefined-reading-0-embeddings-openai/97671/1 "2025-04-06T18:34:08Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/6/c6ce5252b9efb5a37460c423022e872fdff13892.png)

Cannot read properties of undefined (reading ‘0’)

How to fix this please tell me how to select a model

---

<div class="post-metadata">

**Author:** ![jpvanoosten](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jpvanoosten/32/31808_2.png) [@jpvanoosten](https://community.n8n.io/u/jpvanoosten)\
**Post date:** [May 22, 2025, 3:58pm UTC](https://community.n8n.io/t/cannot-read-properties-of-undefined-reading-0-embeddings-openai/97671/2 "2025-05-22T15:58:00Z")

</div>

Hi @alexguzmenko

Unfortunately, I don’t think OpenRouter supports the Embeddings endpoints of OpenAI. You would have to use a different model-provider to get the embeddings. Obviously, you could use OpenAI embeddings, but HuggingFace also supports them. If you are running this locally, you can also use Ollama embeddings.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 20, 2025, 3:58pm UTC](https://community.n8n.io/t/cannot-read-properties-of-undefined-reading-0-embeddings-openai/97671/3 "2025-08-20T15:58:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
