# OpenAI Embeddings Not Working

**URL:** <https://discuss.vllm.ai/t/openai-embeddings-not-working/2255>\
**Category:** General\
**Created:** [January 21, 2026, 9:13pm UTC](https://discuss.vllm.ai/t/openai-embeddings-not-working/2255 "2026-01-21T21:13:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoodGuyGregory](https://avatars.discourse-cdn.com/v4/letter/g/bbce88/32.png) [@GoodGuyGregory](https://discuss.vllm.ai/u/GoodGuyGregory)\
**Post date:** [January 21, 2026, 9:13pm UTC](https://discuss.vllm.ai/t/openai-embeddings-not-working/2255/1 "2026-01-21T21:13:52Z")

</div>

I am running vLLM on a remote host and attempting to execute a test on the `v1/embeddings` endpoint of an OpenAI style api running from the remote host. I have confirmed that the system is running and models are available from the client. My Code to do a simple embedding is below:

I am running

```python
  async def _embed_single(self) -> List[float]:
        """
        Generate embedding for single text (with caching)
        
        Args:
            text: Text to embed
            
        Returns:
            Embedding vector
        """
        try:
            
            responses = await self.openai_client.embeddings.create(
                input=[
                    "Hello my name is",
                    "The best thing about vLLM is that it supports many different models"
                ],
                model=self.model_name,
                dimensions=self.dimension
            )
            
            embedding = []

            for data in responses.data:
                print(data.embedding)
            
            # Normalize embedding
            embedding = np.array(embedding, dtype=np.float32)
            norm = np.linalg.norm(embedding)
            if norm > 0:
                embedding = embedding / norm
            
            return embedding
            
        except requests.RequestException as e:
            logger.error(f"Embedding request failed: {e}")
            return [0.0] * self.dimension
        except Exception as e:
            logger.error(f"Embedding processing failed: {e}")
            return [0.0] * self.dimension

```

**Problems**

Everytime I step through this code I keep hitting the same error before I can iterate through the `responses.data` I get the same error: `No Embedding data recieved`

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/vllm/original/2X/8/87971120fb134d5d763c5e5158aa28045e30425d.png)

Granted this is loosely based on the documentation for the repository’s code example [Open AI embeddings example](https://docs.vllm.ai/en/v0.7.3/getting_started/examples/openai_embedding_client.html)

There has to be something simple I am doing wrong here. Any help would be appreciated.

Surly this must be something incredibly stupid for me and I am a novice to this whole setup so any kind guidance would be highly appreciated.

After messing around a bit I think the model might not support Embeddings. Is there a list of models that support embeddings some where on the vLLM

```shell
model: Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8
Embedding processing failed: The model does not support Embeddings API

```

---

<div class="post-metadata">

**Author:** ![GoodGuyGregory](https://avatars.discourse-cdn.com/v4/letter/g/bbce88/32.png) [@GoodGuyGregory](https://discuss.vllm.ai/u/GoodGuyGregory)\
**Post date:** [January 21, 2026, 9:23pm UTC](https://discuss.vllm.ai/t/openai-embeddings-not-working/2255/2 "2026-01-21T21:23:26Z")

</div>

I Think I found the answer to what has been happening. the model responds but won’t embed the incoming text. I would prefer the api tell me this more directly but I think I can search for another opensource model that does support the embedding endpoint. I just don’t know where specifically to search within the documentation.

---

<div class="post-metadata">

**Author:** ![DarkLight1337](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/darklight1337/32/570_2.png) [@DarkLight1337](https://discuss.vllm.ai/u/DarkLight1337)\
**Post date:** [January 22, 2026, 4:04am UTC](https://discuss.vllm.ai/t/openai-embeddings-not-working/2255/3 "2026-01-22T04:04:46Z")

</div>

See [Supported Models - vLLM](https://docs.vllm.ai/en/latest/models/supported_models/#pooling-models)
