Skip to content

Commit d5f600e

Browse files
committed
Make SnakeMQ port configurable.
1 parent 8fa48dd commit d5f600e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ gptcode
3131
You can put a .env in the working directory to load the `OPENAI_API_KEY` environment variable.
3232

3333
### Configurables
34-
Set the `API_PORT` and `WEB_PORT` variables to override the defaults.
34+
Set the `API_PORT`, `WEB_PORT`, `SNAKEMQ_PORT` variables to override the defaults.
3535

3636
Set `OPENAI_BASE_URL` to change the OpenAI API endpoint that's being used (note this environment variable includes the protocol `https://...`).
3737

gpt_code_ui/kernel_program/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
IDENT_KERNEL_MANAGER = "kernel_manager"
55
IDENT_MAIN = "main"
66
KERNEL_PID_DIR = "process_pids"
7-
SNAKEMQ_PORT = 8765
7+
SNAKEMQ_PORT = int(os.environ.get("SNAKEMQ_PORT", 8765))
88

99

1010
def get_logger():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.19',
10+
version='0.42.20',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)