Commit graph

83 commits

Author SHA1 Message Date
Christoph J. Scherr
df6e964751
chore: fix flake8 warnings in haiku and test_haiku
Refs: OPS-70
2025-03-23 17:33:57 +01:00
Christoph J. Scherr
3889809d07
fix: request_haiku method did not work with a simple 3 line haiku
Refs: OPS-70
2025-03-23 17:33:57 +01:00
Christoph J. Scherr
897bf80e38
tests: add test for request_haiku
Refs: OPS-70
2025-03-23 17:33:57 +01:00
Guts
0ce42f595c
Merge pull request #40 from senju1337/feat/OPS-83
feat: add useful error message for when the store manager cant be initialized
2025-03-23 17:31:07 +01:00
Guts
b300987b1f
Merge pull request #41 from senju1337/feat/OPS-65
load default haiku if no haikus exist yet
2025-03-23 17:30:01 +01:00
0xjrx
569b83a647
feat: Fix java script and remove redundant input length enforcement in js
Refs: OPS-86
2025-03-23 17:17:40 +01:00
Christoph J. Scherr
1570325256
chore: fix flake8 warnings
Refs: OPS-65
2025-03-23 14:27:44 +01:00
Christoph J. Scherr
da52e643a7
feat: display the default haiku in the frontend with a small note
Refs: OPS-65
2025-03-23 14:26:54 +01:00
Christoph J. Scherr
8f3ccb94d1
refactor: integrate get_latest_haiku_or_default into load_haiku
Refs: OPS-65
2025-03-23 14:14:27 +01:00
Christoph J. Scherr
69db48af8b
feat: add get_latest_haiku_or_default to store
Resf: OPS-65
2025-03-23 14:09:08 +01:00
Christoph J. Scherr
45519743bd
feat: add useful error message for when the store manager cant be initialized
Refs: OPS-83
2025-03-23 13:58:06 +01:00
An0nymous
2c7394edfa
Merge pull request #31 from senju1337/fix/OPS-64
Fix/ops 64 Fix the poem extraction from the ai to drastically reduce regeneraions
2025-03-21 15:36:54 +00:00
An0nymous
30228afa0c
Merge pull request #35 from senju1337/fix/OPS-69
fix: remove foobar functions which was only used to test if sphinx works
2025-03-21 15:35:39 +00:00
Guts
23e715d847
Merge branch 'devel' into fix/OPS-64 2025-03-21 16:14:21 +01:00
github-actions[bot]
740358ae72 ci: automatic Python Formatter changes 2025-03-21 14:56:43 +00:00
0xjrx
c705e863d1
fix: fix js to limit user input
Reps: OPS-54
2025-03-21 15:56:08 +01:00
0xjrx
36c3d0a83f
fix: changed html error code to the correct one
Refs: OPS-54
2025-03-21 15:31:51 +01:00
0xjrx
1ca1bc525b
fix: remove unnecessary import
Refs: OPS-54
2025-03-21 15:26:30 +01:00
0xjrx
8223437f9e
feat: increase input length and enforce length in js as well as backend
Refs: OPS-54
2025-03-21 15:23:02 +01:00
0xjrx
a89ad5cba9
feat: Add a maximum input length fo the prompt
Refs: OPS-54
2025-03-21 15:06:26 +01:00
Christoph J. Scherr
862c0d915c
fix: remove foobar functions which was only used to test if sphinx works
Refs: OPS-69
2025-03-21 15:06:09 +01:00
Alivecow
3168b250e0 fix: Fix poem extraction from AI response
Refs: OPS-64
2025-03-21 14:13:14 +01:00
Guts
440aaa2bd4
Merge pull request #29 from senju1337/feat/OPS-61
feat/OPS-61: auto documentation
2025-03-20 11:42:14 +01:00
An0nymous
308a2cf981
Merge pull request #30 from senju1337/feat/ai_promts
Feat/ai promts Add new model and change model temperature
2025-03-17 15:47:32 +00:00
Alivecow
f7a7eeb3c7 refactor: Change model back to phi
Refs: OPS-12
2025-03-17 16:43:04 +01:00
Alivecow
aeb3875564 feat: Change model creation to have better control and model
Refs:: OPS-12
2025-03-17 15:43:11 +01:00
github-actions[bot]
627b546227 ci: automatic Python Formatter changes 2025-03-15 19:09:15 +00:00
Joscha Dierks
20855b2117 feat/OPS-61: fix - documentation works without converting senju into a python package.
Important: It seems the sphinx commands only work by entering the virtual environment of senju by copying the command/output of
```poetry env activate```
Inside the env install/update the poetry packages to ensure that you use the correct version of sphinx. Afterward cd into the senju/docs folder and execute auto_docu.sh
You can open the docu with
```firefox build/html/index.html```
2025-03-15 19:55:10 +01:00
Joscha Dierks
b9c4091299 feat/OPS-61: added auto documentation for haiku.py, main.py and store_manager.py
At the moment it works by converting senju into a python package. This causes the html docu to start with a link 'senju package' which lists all three moduls and their documentation. I will try now to make it so all three moduls have a docu link of their own.

The method foobar in each modul is for testing purposes and should be deleted once full functionality is confirmed.
2025-03-15 19:40:35 +01:00
github-actions[bot]
5c00acad9b ci: automatic Python Formatter changes 2025-03-14 14:33:32 +00:00
Guts
fe16fc2b6d
Merge branch 'devel' into feat/OPS-55 2025-03-14 15:33:09 +01:00
0xjrx
52313f8694
chore: remove yo mama and retry renaming
Refs: OPS-55
2025-03-14 15:20:24 +01:00
0xjrx
4eef745764
feat: add box to show generated haiku from image
OPS-55
2025-03-14 15:11:04 +01:00
Amrasil
f60120245e feat/OPS-36: fix line length requirement (again) 2025-03-12 13:03:26 +01:00
Amrasil
dadacb76f9 feat/OPS-36: fix line length requirement 2025-03-12 12:47:54 +01:00
Amrasil
bdb1502203 feat/OPS-36: add favicon to all sites 2025-03-12 12:21:37 +01:00
0xjrx
b43d03c35c
feat: add check buttons for the uploaded image before submitting them to generate a Haiku
Refs: OPS-55
2025-03-07 17:07:46 +01:00
0xjrx
112d96d55c
style: add button to confirm the scanned image content before generating
Refs: OPS-55
2025-03-07 16:47:54 +01:00
0xjrx
b739b1d1dc
style: Add removal of submit message if no image is submitted yet
Refs: OPS-55
2025-03-07 16:26:23 +01:00
0xjrx
34b52b8866
feat: adds a site for uploading images and generating haikus
Refs: OPS-55
2025-03-07 16:00:41 +01:00
Christoph J. Scherr
632bdf6612
Merge pull request #19 from senju1337/feat/ai_promts
Add the AI promt generation and then redirect to Haiku page
2025-03-05 20:31:12 +01:00
Alivecow
fb5c28c891 refactor: Remove unneded line
Refs: OPS-12
2025-03-05 20:29:47 +01:00
0xjrx
f2c01926da
fix: removes typo 2025-03-04 21:00:53 +01:00
Alivecow
7c304eaa3c feat: Add valdidation for the Haiku format
Refs: OPS-12
2025-03-04 17:49:29 +01:00
Alivecow
62e964b800 refactor: Change format requested from AI
Refs: OPS-12
2025-03-04 17:11:50 +01:00
github-actions[bot]
e96ab55378 ci: automatic Python Formatter changes 2025-03-03 15:02:37 +00:00
Alivecow
dc9438d2fb refactor: Remove commented code
Refs: OPS-12
2025-03-03 16:02:11 +01:00
Alivecow
76ad52d3a9 refactor: Addressing PR comments
Refs: OPS-12

Consolidated AI gen module
Changed API endpoint
2025-03-03 15:55:48 +01:00
Alivecow
edf145c8de feat: Add Method not Allowed handling for generate API and imporove error handling
Refs: OPS-12
2025-03-03 15:36:03 +01:00
Alivecow
0243091b76 refactor: Rework ai generation
Refs: OPS-22

This is meant to rework the ai generation by adding error handling by
regenerating the prompt
2025-03-01 21:36:00 +01:00