golivecosmos / llm-react-node-app-template

The Javascript template for an LLM react node app.
MIT License
83 stars 14 forks source link

404 error from the OpenAI AP #11

Open chaosisnotrandomitisrhythmic opened 6 months ago

chaosisnotrandomitisrhythmic commented 6 months ago

POST request to /chat, which then results in an HTTP 500 error on the server-side due to the initial 404 error from the OpenAI API.

[llm/error] [1:llm:openai] [271ms] LLM run errored with error: "Request failed with status code 404"
  xxx POST /chat 500 276ms -

I was using the application with the environment variable ENABLED_MODEL_STORE=OPEN_AI set and also set a fresh OpenAI key.

Suspected issue due to recent API changes in Langchain/OpenAI, potentially causing this error due to breaking changes.