## TL;DR

Fix: Contributor iaalm: set embed_batch_size=1 - e.g. Reporter KeyanatGiggso confirmed the workaround.

## The error

```text
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
```

## Fix

1. Contributor iaalm: set embed_batch_size=1 - e.g.
2. Reporter KeyanatGiggso confirmed the workaround.

Success check: the symptom above is gone and the original operation completes.

## When to use

- You hit this exact symptom in llama_index.
- You want the verified fix without digging through the thread.

## When not to use

- A different error in llama_index, even a similar-looking one.
- General llama_index setup or credential questions.

## Compatibility

- Llama Index (run-llama/llama_index)

## Variant phrasings

- How to fix "openai:error_code=None error_message='Too many inputs for model None. The max number of inputs is 1." in llama_index
- llama_index: openai:error_code=None error_message='Too many inputs for model None. The max number of inputs is 1.

## Source

- https://github.com/run-llama/llama_index/issues/947