openai:error_code=None error_message='Too many inputs for model None. The max number of inputs is 1.
## The problem
Issue run-llama/llama_index#947 (closed, 23 comments): while using llama_index GPTSimpleVectorIndex I am reading a pdf file using SimpleDirectoryReader. I am unable to create index for the file and it is generating the below error: INFO:openai:error_code=None error_message='Too many inputs for model None. The max number of inputs is 1. We hope to increase the number of inputs per request soon. Please contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 for further questions.' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False The code works for some fi
## The verified fix
Azure-specific issue: Azure OpenAI rejects multi-input embedding batches. Contributor iaalm: set embed_batch_size=1 - e.g. ServiceContext.from_defaults(embed_model=OpenAIEmbedding(embed_batch_size=1)) (or the equivalent Settings.embed_model config in newer versions). Confirmed working by zioproto with LangChain/Azure OpenAI embeddings. Reporter KeyanatGiggso confirmed the workaround.