Skip to content

Inconsistent environment variable name usage? #2143

@eero-t

Description

@eero-t

GenAIComps project files consistently use LLM_SERVICE_* environment variable names:

GenAIComps$ git grep '\bLLM_SERV'
README.md:LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0")
README.md:LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000)
README.md:            host=LLM_SERVICE_HOST_IP,
README.md:            port=LLM_SERVICE_PORT,
comps/cores/mega/exporter.py:            "LLM_SERVICE_HOST_IP": "llm-svc",
tests/cores/mega/mega.yaml:      - LLM_SERVER_HOST_IP: llm-server
tests/cores/mega/mega.yaml:      - LLM_SERVER_PORT: 8005

Whereas half of GenAIExamples files use LLM_SERVICE_*, and half use LLM_SERVER_* env variable names.

GenAIExamples$ git grep -l '\bLLM_SERVICE_' | wc -l
53
GenAIExamples$ git grep -l '\bLLM_SERVER_' | wc -l
59

(There's also similar split for other *_SERV* variables.)

E.g. chatqna.py and chatqna_wrapper.py (added in #1144) use different ones, but nothing in this repo uses/references latter one???

GenAIExamples$ git grep chatqna_wrapper
GenAIExamples$

Why env variable naming is not more consistent, and why repo has code that is not referenced anywhere (tests, Dockerfiles etc)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions