Bug description When following the vectore_store with PGVector from the SpringAI documentation it fails with the following:

org.springframework.ai.retry.NonTransientAiException: 400 - {
  "error": {
    "message": "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

I don't know if the OpenAiClient supports batching anymore? https://platform.openai.com/docs/guides/embeddings#how-to-get-embeddings

Spring-ai When doing a batch request against open ai embeddings Spring ai is not working.

View from my debugger in OpenAiApi.java

Environment Spring AI M5

Steps to reproduce auto configure spring ai follow this:

Expected behavior embeddings are created and saved in vector_store

Can someone advise as to what's going on or if I'm maybe doing something wrong?

Comment From: lfernandez93

nevermind I am noob. and was trying to send empty data to one of these, there's indeed a batching api and everything is working. DISREGARD!