PromtEngineer / PromtEngineer/localGPT

Read ports and models from .env file

Open
#923 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
22.2k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

In .env file there are ports and models defined like:

BACKEND_PORT=8000
FRONTEND_PORT=3000
RAG_API_PORT=8001

GENERATION_MODEL=qwen3:8b
ENRICHMENT_MODEL=qwen3:0.6b
EMBEDDING_MODEL=Qwen/Qwen3-Embedding-0.6B
RERANKER_MODEL=answerdotai/answerai-colbert-small-v1

However, these port numbers and model names are hardcoded in various places, e.g. in run_system.py or backend/server.py, instead of reading from environment variables. This is a huge burden when I want to change the ports or models without using Docker. Please read them from single place.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how configuration is loaded in run_system.py and backend/server.py, then search for the hardcoded ports and model names shown in the issue. Check how the existing .env file is exposed to the Python process. Done means changing those values in one .env file affects the system when run without Docker.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.