Type Mismatch For using OpenAI Interface
Labels: name: area: embeddings, name: auto:bug

### System Info

I use OpenAIEmbeddings from langchain.embedding,  and using openAI function.

However I find it's a problem that when we call OpenAI Interface, the input is a 2D list, not a 1D list.

If the input is a 1D list, it could work for embedding.create func

like this:
![image](https://github.com/langchain-ai/langchain/assets/9065977/3b0b6aaa-b7d3-4a31-82bb-4c301c8fed52)

and I found out that openai api does not support 2D list as input.
![image](https://github.com/langchain-ai/langchain/assets/9065977/b3304957-e8cf-4251-88da-7f076ee7e626)
![image](https://github.com/langchain-ai/langchain/assets/9065977/31b52986-e455-4d3c-a497-c5497f8581f4)


how could I solve this problem
![image](https://github.com/langchain-ai/langchain/assets/9065977/d221dcfd-ab1e-4cb2-80b9-2184fc9a62ed)


the error is shown below:
``` 
Traceback (most recent call last):
  File "..\main.py", line 47, in <module>
    langchain_openai()
  File "..\main.py", line 42, in langchain_openai
    query_result = embeddings.embed_query(text)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\langchain\embeddings\openai.py", line 501, in embed_query
    return self.embed_documents([text])[0]
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\langchain\embeddings\openai.py", line 473, in embed_documents
    return self._get_len_safe_embeddings(texts, engine=self.deployment)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\langchain\embeddings\openai.py", line 359, in _get_len_safe_embeddings
    response = embed_with_retry(
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\langchain\embeddings\openai.py", line 108, in embed_with_retry
    return _embed_with_retry(**kwargs)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\tenacity\__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\tenacity\__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\tenacity\__init__.py", line 314, in iter
    return fut.result()
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\concurrent\futures\_base.py", line 437, in result
    return self.__get_result()
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\concurrent\futures\_base.py", line 389, in __get_result
    raise self._exception
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\tenacity\__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\langchain\embeddings\openai.py", line 105, in _embed_with_retry
    response = embeddings.client.create(**kwargs)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\openai\api_resources\embedding.py", line 33, in create
    response = super().create(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\openai\api_requestor.py", line 298, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response
    self._interpret_response_line(
  File "C:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\openai\api_requestor.py", line 763, in _interpret_response_line
    raise self.handle_error_response(
openai.error.InvalidRequestError: parse parameter error: type mismatch
```


### Who can help?

@hwchase17 @agola11 

### Information

- [x] The official example notebooks/scripts
- [ ] My own modified scripts

### Related Components

- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async

### Reproduction

![image](https://github.com/langchain-ai/langchain/assets/9065977/8baf43a3-9cbb-4230-8184-2ff4d57044ab)

```
def langchain_openai():
    from langchain.embeddings import OpenAIEmbeddings

    embeddings = OpenAIEmbeddings(
        model="text-embedding-ada-002",
        openai_api_base="",
        openai_api_key=""
    )
    text = "This is a test query."
    query_result = embeddings.embed_query(text)
    print(query_result[:5])
```

### Expected behavior

I think it's a bug or something to fix