From 5c6d6ce1dae8b9e8cc5f4f35403c97528a96fcb7 Mon Sep 17 00:00:00 2001 From: SponsoredByPuma <92574150+SponsoredByPuma@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:39:33 +0200 Subject: [PATCH] Feature/gpt integration (#801) * first basic functionality of the ai feature works * Google Java Format * add poetry dependency file * add test property for python container, test classes * Google Java Format * improve design of markdown, userstories & add markdown to member * add title functionality + style, improve Codebase * styling of the description improved, removed overflow for ai buttons * logic for description, styling of description, modal, title * add AiControllerTest Logic * Google Java Format * add grammar check logic + JUnitTests Backend, add spinner to fe, * Google Java Format * add PyTest to Python Container * change prettier to warn * add confidental masking for grammar check * Google Java Format * add confidental masking for description, add jira2md converter, us.id is now a string * Google Java Format * privacy modal added, 3 categories of confidential data, tried few-shot prompting * Google Java Format * added language selector to privacy modal for better prompting results * Google Java Format * added user story estimation feature, translation * Google Java Format * add cancel button translation * prompts are now in extra files, add docker env variable * remove docker env, and logic for python service * improve modal design, functionality * fix deletion bug * splitting a user story now works * Google Java Format * improve optic of split feature * improve german prompt & design of splitting modal * fix title bug, remove unnecessary variable * fix deletion bug for splitted User Stories * improve title prompt_title.txt * fix prompt_grammar_check.txt * adjust styling of modal * add function to check if api key exists * Google Java Format * increase max_tokens for prompts * fix two prompting mistakes * marking important content now works * Google Java Format * remove unnecessary prints * add ai container to pipeline * fix: merge conflicts & remove cat gif * add ai container to docker * add new properties * rename file * change env profile --------- Co-authored-by: github-actions <> Co-authored-by: Till Wanner --- backend/src/main/resources/application-devDiveni.properties | 6 ++++++ docker-compose.dev.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 backend/src/main/resources/application-devDiveni.properties diff --git a/backend/src/main/resources/application-devDiveni.properties b/backend/src/main/resources/application-devDiveni.properties new file mode 100644 index 000000000..0981046a0 --- /dev/null +++ b/backend/src/main/resources/application-devDiveni.properties @@ -0,0 +1,6 @@ +spring.data.mongodb.uri=mongodb://diveni_database:27017 +spring.data.mongodb.database=diveni +server.port=9090 +server.forward-headers-strategy=framework +springdoc.swagger-ui.disable-swagger-default-url=true +python_ai_url=http://dev_diveni_ai:8000 diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 1299a9d46..9525d6d16 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -31,7 +31,7 @@ services: container_name: diveni_backend restart: unless-stopped environment: - - "SPRING_PROFILES_ACTIVE=prod" + - "SPRING_PROFILES_ACTIVE=devDiveni" env_file: - ./backend/.env healthcheck: