Find answers from the community

Updated 2 months ago

WHy am i getting this error- { "detail": "Error creating vector store: Error code: 400

WHy am i getting this error- {
"detail": "Error creating vector store: Error code: 400 - {'error': {'message': "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.\", 'type': 'invalid_request_error', 'param': None, 'code': None}}"
}
k
L
3 comments
Please stand by @bhrdwj as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
The error message you're seeing suggests that there's an issue with the 'input' parameter in your request to the OpenAI API. This could be due to a variety of reasons such as incorrect formatting, missing required fields, or invalid values.

In the LlamaIndex examples provided, the OpenAI API key is set using the following code:

Plain Text
import os
os.environ["OPENAI_API_KEY"] = "your-api-key"
import openai
openai.api_key = os.environ["OPENAI_API_KEY"]

(Source: LlamaIndex Documentation ())

Ensure that you have correctly set your OpenAI API key and that your request to the OpenAI API is correctly formatted according to the OpenAI API reference ().

If you're still encountering issues, it would be helpful to review the specific API call you're making and the data you're passing in the 'input' parameter. Without more specific information about your API call, it's difficult to provide a more precise solution.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
This usually means you are trying to embed something with no text
Add a reply
Sign up and join the conversation on Discord