DeepTutor icon indicating copy to clipboard operation
DeepTutor copied to clipboard

[Question]: Connection error when trying to use the 3rd party OpenAI provider.

Open Syed1337 opened this issue 10 months ago • 4 comments

Do you need to ask a question?

  • [x] I have searched the existing questions and discussions and this question is not already answered.
  • [x] I believe this is a legitimate question, not just a bug or feature request.

Your Question

I'm using the DMX API provider and have entered all the info correctly, but when I run it through Docker, I'm getting following issues:

  1. No matter what model I choose, it always shows GPT-4o on dashboard.
  2. When I click "Test Connection," I get an error saying: LLM connection failed: RetryError[<Future at 0x70f8e8974110 state=finished raised APIConnectionError>](12418.16ms).

I've already tried:

  • Disabling my firewall and antivirus
  • Turning my VPN on and off

I've also attached a screenshot of my .env file.

Related Module

API/Backend

Additional Context

No response

Syed1337 avatar Jan 07 '26 03:01 Syed1337

Image Image

I am encountering a similar issue regarding the embedding configuration.

I attempted to change the embedding dimension to 1024. I modified the value in the .env file and updated settings.py accordingly. I also performed a clean reinstall and deleted the data directory to ensure there were no residual files or cache.

However, the system still insists on expecting 1536 dimensions (which seems to be the OpenAI default). Note: I am using a third-party OpenAI-compatible API provider.

Lunemere avatar Jan 07 '26 07:01 Lunemere

Thanks for your comments! Currently our team is fixing this, and we hope to fix it in the next release

pancacake avatar Jan 07 '26 08:01 pancacake

@Syed1337

Intermittent provider connection errors often show up as a long time‑to‑first‑byte followed by a reset.

Two quick checks: reuse an HTTP session and add exponential backoff around the provider call.

If helpful, I can run one call and reply with a receipt (exact timing + failure stage); temporary base_url for a single request is simplest, or redacted payload if code is locked.

ghost avatar Jan 07 '26 23:01 ghost

There is no bug in DeepTutor. I have rebuilt the Docker container, and it is now functioning correctly with third-party API providers, such as DMX in my case. However, I would like to note that content generation is taking a significant amount of time. For example, after adding one file to my knowledge base and requesting the generation of two questions, the process took approximately three minutes.

Syed1337 avatar Jan 08 '26 02:01 Syed1337