Commit Graph

94 Commits

Author SHA1 Message Date
ljhbt 8d1e5ab3c6 Add testchat.http for ChatGPT API requests
Introduce a new HTTP file to send and retrieve ChatGPT interactions. This includes a POST request to submit prompts and a GET request to retrieve the conversation.
2024-09-17 17:21:29 +02:00
ljhbt 929dcb9885 Add conversation retrieval endpoint to ChatService
Implemented a new method in ChatService and ChatServiceImpl to fetch conversation history. Added a corresponding endpoint in AppController to handle GET requests for conversation dialogues based on requestId.
2024-09-17 17:21:03 +02:00
ljhbt 9511986fdd Add chat feature with caching and request handling
Introduced a `ConversationCache` for storing chat prompts and responses. Implemented a `ChatService` and `ChatServiceImpl` for processing chat prompts. Also added an `AppController` to handle HTTP requests for sending chat prompts.
2024-09-17 17:16:02 +02:00
Jim Martens 013b75dcd3
Add OpenAIService 2024-09-17 15:27:34 +02:00
Jim Martens 9c9695ba52
ci: Reposition the quote marks 2024-09-17 11:10:45 +02:00
Jim Martens eca5112b7c
ci: Publish the built version to job summary 2024-09-17 11:07:50 +02:00
Jim Martens 6d9846b44f
ci: Use run number to version snapshot builds 2024-09-17 10:59:20 +02:00
ljhbt 30b7ea0599 Merge remote-tracking branch 'origin/main' 2024-09-17 10:43:21 +02:00
ljhbt a274ee323b Refactor GTIWrapper to enhance error handling
Replaced generic exception handling with specific catch blocks for more explicit logging. Introduced KotlinLogging for better logging practices and added detailed error messages for different exceptions.
2024-09-17 10:42:56 +02:00
Jim Martens a11617f721
ci: Auto build docker image on push to main 2024-09-17 10:36:26 +02:00
ljhbt 103c824354 Refactor GTIProxyController to use GTIWrapper for signing
This change introduces GTIWrapper to handle request signing, replacing the in-controller HMAC-SHA1 computation. It simplifies the code and improves separation of concerns by delegating cryptographic operations to a dedicated service.
2024-09-17 10:22:18 +02:00
ljhbt 2abbb81afc Add GTIWrapper service for HMAC-SHA1 signing
Extracted HMAC-SHA1 signature logic to GTIWrapper service for better code reusability and separation of concerns. Updated GTIProxyController to utilize the new GTIWrapper service, simplifying the controller logic.
2024-09-17 10:21:08 +02:00
sku d78fca1a02 Correct GTI endpoint and add to permitted paths 2024-09-16 22:30:25 +02:00
sku cb36be7885 Add GTIProxyController for GTI request forwarding
This commit introduces the GTIProxyController to handle and forward GTI requests. It includes HMAC SHA1 authentication and communicates with the GTI API using RestTemplate. The controller processes POST requests with dynamic method paths and headers for authentication.
2024-09-16 17:56:58 +02:00
Jim Martens d02e38658c
fix: Disable Keycloak policy filter and always allow localhost 2024-09-16 17:41:24 +02:00
Jim Martens d8d4532af6
fix: Remove obsolete CLIENT_SECRET 2024-09-04 22:58:21 +02:00
Jim Martens 8aac579178
fix: Added missing configserver entry 2024-09-04 22:24:51 +02:00
Jim Martens 8d810ed132
fix: Publish snapshot builds on manual trigger 2024-09-04 22:13:11 +02:00
Jim Martens dccdccd81d
fix: Use public registry type 2024-09-04 21:51:22 +02:00
Jim Martens c22922a749
fix: Use us-east-1 region for login 2024-09-04 21:42:54 +02:00
Jim Martens 9ae7fc56c9
change: Use public ECR registry 2024-09-04 21:30:30 +02:00
Jim Martens 9711053b99
chore: Update dependencies 2024-09-03 23:22:10 +02:00
Jim Martens eb1e02de96
fix: Revert tag names 2024-09-03 22:38:02 +02:00
Jim Martens fbacde84db
fix: Actually fill gradle cache 2024-09-03 22:36:02 +02:00
Jim Martens e3dc7a8036
fix: Use image name in tag as well 2024-09-03 22:31:34 +02:00
Jim Martens eca655615d
change: Use gradle wrapper in actions and upgrade it to 8.10 2024-09-03 22:25:25 +02:00
Jim Martens 3cf74de4e1
change: Use setup-gradle action for build workflow 2024-09-03 22:21:38 +02:00
Jim Martens fc1706f93a
fix: Add missing role-to-assume 2024-09-03 22:13:45 +02:00
Jim Martens 56a8340c61
change: Switch to newer setup-gradle action 2024-09-03 22:00:08 +02:00
Jim Martens e4f247102d
fix: Remove no longer required env var passthrough 2024-09-03 21:56:56 +02:00
Jim Martens 2b67bec3ee
fix: Add missing configuration of AWS credentials 2024-09-03 21:56:27 +02:00
Jim Martens fb1d08670d
fix: Use v2 of amazon-ecr-login action 2024-09-03 21:53:30 +02:00
Jim Martens f345c7ca8e
change: Publish to ECR 2024-09-03 21:50:23 +02:00
Jim Martens 13d9ac2f73
feat: Add workflows for building and publishing docker image 2024-09-03 08:59:28 +02:00
Jim Martens fd8f1266c3
docs: Add information on authentication 2024-09-02 12:58:36 +02:00
Jim Martens fc681f57a0
chore: Adjust name on error page 2024-08-30 16:29:21 +02:00
Jim Martens c757185d01
chore: Remove mongodb dependency 2024-08-30 16:26:49 +02:00
Jim Martens 9549f88e9d
chore: Remove domain 2024-08-30 16:22:26 +02:00
Jim Martens 06ce3e34b0
fix: Add missing classes 2024-08-30 16:20:54 +02:00
Jim Martens b1439615bc
ci: Add basic support for GitHub actions 2024-08-30 14:47:52 +02:00
Jim Martens ef5cbc1bb4
fix: Removed unsupported annotations 2024-08-30 14:42:06 +02:00
Jim Martens 1d3a9658cd
docs: Cleared Readme 2024-08-30 14:40:45 +02:00
Jim Martens 14bc2dad74
Initial commit 2024-08-30 14:39:25 +02:00
Jim Martens f604ee1577
Initial commit 2024-08-30 14:13:24 +02:00