LM studio embedding models

Hey guys currently I am trying to use an embedding model in supabase vector store, but not working i am trying to run the embedding model in LM studio which it works but as soon as I run in n8n all i get in return is{
“response”: [
[
0,
0,
0,
0, . any one who can help me on this

I tried to use google gemini aswell and i get now this error

**Error inserting: vector must have at least 1 dimension 400 Bad Request
**

Which API do embeddings use? lm studio supports embeddings only when you call post http://localhost:1234/v1/embeddings and not /chat/completions, /completions, or /generate; calling the wrong endpoint returns garbage vectors like [0.0, 0.0, ...]