OpenAI API
GPT building: Could not find a valid URL in servers
Sometimes when we add an Action to the Config GPT window, and use the “import URL” tool to import e.g., “https://…url/openapi.json” we may get this https://chatweb3.up.railway.app/openapi.json
. Examine the .json file, it is likely missing a line with the “server” url. We can compare it with the reference files generated by OpenAI’s ActionGPT. After adding this server line, it should work.
Assistant API: Error on uploading files for retrieval
400 - {'error': {'message': 'Files with extensions [none] are not supported for retrieval.
See discussion
Migrate OpenAI API to v1
poetry update openai# or
--upgrade openai
pip install
openai migrate
from openai.error import InvalidRequestError
-> from openai import BadRequestError
https://stackoverflow.com/questions/77820916/openai-api-error-modulenotfounderror-no-module-named-openai-error
https://github.com/openai/openai-python/discussions/742