Commit graph

161 commits

Author SHA1 Message Date
Christoph J. Scherr
bf3f70ed2f
Merge pull request #39 from senju1337/test/OPS-70
Add more tests for the haiku and store manager classes
2025-03-23 17:36:21 +01:00
Christoph J. Scherr
7df683f3fe
test: add more edgecase tests for the store manager
Refs: OPS-70 OPS-82
2025-03-23 17:35:31 +01:00
Christoph J. Scherr
08a7bd45ec
chore: fix flake8 warnings in test_haiku.py
Refs: OPS-70 OPS-81
2025-03-23 17:33:58 +01:00
Christoph J. Scherr
0c0554e931
test: move test_temp_data_dir to store tests
Refs: OPS-70
2025-03-23 17:33:58 +01:00
Christoph J. Scherr
e700c0d4cb
chore: remove trivial test_tests_are_loaded test
Refs: Ops-70
2025-03-23 17:33:58 +01:00
Christoph J. Scherr
2fa911c665
test: add test_request_haiku_respondse_bad
Refs: OPS-70 OPS-81
2025-03-23 17:33:57 +01:00
Christoph J. Scherr
4887047cbf
test: add asserts to the haiku tests
Refs: OPS-70 OPS-81
2025-03-23 17:33:57 +01:00
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
Christoph J. Scherr
aa236775ba
tests: add some tests to test the methods of 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
An0nymous
88f391cdd0
Merge pull request #44 from senju1337/fix/OPS-86
fix/OPS-86: fix Java Script
2025-03-23 16:25:30 +00: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
cf48ac8164
test: add tests for get_latest_haiku_or_default
Refs: OPS-65
2025-03-23 14:09:26 +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
ee16a4bf8d
Merge pull request #33 from senju1337/feat/OPS-63-docsgen
setup a simple generation for the documentation OPS-63
2025-03-21 15:36:25 +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
Guts
7880919e06
Merge pull request #37 from senju1337/feat/OPS-54
Feat/ops-54: Add a maximum input length fo the prompt
2025-03-21 16:03:02 +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
An0nymous
1022baa886
Merge pull request #36 from senju1337/docs
docs: components
2025-03-21 14:12:20 +00:00
Christoph J. Scherr
2ed42fc9a5
docs: components 2025-03-21 15:08:20 +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
Christoph J. Scherr
57d2f31b19
chore: deploy docs to github pages and manual artifacts
Refs: OPS-63
2025-03-21 14:37:19 +01:00
Christoph J. Scherr
44bbfa24d3
chore: setup a simple generation for the documentation
Refs: OPS-63
2025-03-21 14:36:55 +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
Guts
33aaac5f3b
Merge pull request #27 from senju1337/feat/OPS-55
Feat/OPS-55 add frontend for image to haiku
2025-03-17 15:01:11 +01:00
Christoph J. Scherr
5e1af865a8
Merge pull request #20 from senju1337/master
rebase to latest changes in master
2025-03-17 14:28:20 +01:00
Christoph J. Scherr
63d434efe2
chore: remove _modules and autogenerate it
Refs: OPS-61
2025-03-17 14:24:22 +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
Joscha Dierks
39369a65d6 feat/OPS-61: add basic documentation
It currently works only for haiku.py for some reason
2025-03-14 16:53:44 +01:00
github-actions[bot]
5c00acad9b ci: automatic Python Formatter changes 2025-03-14 14:33:32 +00:00