Print the full request URL the client actually sends, including the path it appends to your base URL.

Compare that URL against the OpenAI compatible base URL in the provider documentation for chat completions.

Correct the base URL so it ends at the documented compatible root and let the client append the completions path itself.

Send a minimal chat completion with a model listed on the provider model page.

If the plain 404 remains, try the same call with a direct HTTP request instead of the client library.