From c4899cac27e60c1ecb2944a97ff4bc14c327d2a9 Mon Sep 17 00:00:00 2001 From: Harry Wixley Date: Mon, 11 Dec 2023 21:00:58 +0000 Subject: [PATCH] GPT-commit: Updated gitignore, removed logger.cpython-38.pyc, and modified openai_service.py GPT-commit: Modified .gitignore, deleted logger.cpython-38.pyc, and modified openai_service.py to reflect project updates and remove unnecessary files. --- .gitignore | 1 + .../services/__pycache__/logger.cpython-38.pyc | Bin 460 -> 0 bytes scripts/services/openai_service.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 scripts/services/__pycache__/logger.cpython-38.pyc diff --git a/.gitignore b/.gitignore index 9c4d7b2..19a0d40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .wix-cli-data/ wix-cli-template.sh +*.pyc \ No newline at end of file diff --git a/scripts/services/__pycache__/logger.cpython-38.pyc b/scripts/services/__pycache__/logger.cpython-38.pyc deleted file mode 100644 index a708c2a7f5c25af0dd11c5da646cf2484daf59ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 460 zcmbVIu};J=3{BGZ+5>K5kOMwQ>~~ za;K^8ICn_5wMLgWwk(kjyN!?Q_S!~a-SBfEX_xU|e<~tEpddwQfUxlogp2zGi7ZVx l{F}7L@jRk%uW>4c!dBZTF!p9g#=^S6<8WUWGh`}@z5x{vVH*Gd diff --git a/scripts/services/openai_service.py b/scripts/services/openai_service.py index 281e676..55f27db 100644 --- a/scripts/services/openai_service.py +++ b/scripts/services/openai_service.py @@ -11,7 +11,7 @@ class OpenAIService: KEY_PATH = f"{REPO_PATH}/.wix-cli-data/.env" KEY_NAME="OPENAI_API_KEY" ENGINE="gpt-3.5-turbo" - ASSISTANT_MESSAGE = { "role": "system", "content": "You are a helpful assistant."} + ASSISTANT_MESSAGE = { "role": "system", "content": "You are a developer pushing code to a git repository. You are writing a commit message for the changes you have made. You must use the following bash git outputs to write an informative and relevant commit message. Make sure to ignore cache files and mention specifically which functions, classes or variables were modified/created/deleted and why."} SEPARATOR="-"*110 MAX_TOKENS=4097