Commit graph

84 commits

Author SHA1 Message Date
Alivecow
dc9438d2fb refactor: Remove commented code
Refs: OPS-12
2025-03-03 16:02:11 +01:00
Alivecow
01484ba4ed Merge branch 'feat/ai_promts' of github.com:senju1337/senju into feat/ai_promts 2025-03-03 15:57:01 +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
github-actions[bot]
0c4e88cf7e ci: automatic Python Formatter changes 2025-03-03 14:36:32 +00: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
Alivecow
8c0a7771e0 refactor: Change format to conform to flake8 2025-02-28 22:21:03 +01:00
Alivecow
b8994a3d02 refactor: Change sys prompt and redirection to Haiku page
Refs: OPS-22
2025-02-28 22:10:39 +01:00
Alivecow
6c698d1528 feat: Add redirection to Haiku page and save in DB
Refs: OPS-22
2025-02-28 22:00:52 +01:00
Alivecow
7e5d61663a feat: Add promt generation from webserver
Refs: OPS-22
2025-02-28 21:33:09 +01:00
Amrasil
91e4567bf6
Merge pull request #16 from senju1337/fix/docker-was-broken
this fixes the docker container, it previously couldnt start the senju webserice
2025-02-28 16:42:38 +01:00
Christoph J. Scherr
7d41df6976
fix: containerized senju did not start properly
Refs: OPS-10
2025-02-28 16:14:23 +01:00
Amrasil
83add1d0a3
Merge pull request #14 from senju1337/feat/haiku_prompt
feat: Add site for promt input to generate a Haiku
2025-02-27 13:00:14 +01:00
0xjrx
80f3d6d9a9
fix: rename from jinja to html and update on main.py accordingly
Refs: OPS-50
2025-02-27 12:41:27 +01:00
Christoph J. Scherr
e22a2b8312
Merge pull request #11 from senju1337/feat/container
Feat/container: Adding initial multistage dockerfile for mainpage and compose file. Also add container for ollama ai.
2025-02-27 12:32:06 +01:00
github-actions[bot]
c032865e0a
ci: automatic Python Formatter changes 2025-02-27 12:12:50 +01:00
0xjrx
3c260ea004
feat: Add site for promt input to generate a Haiku
Refs: OPS-50
2025-02-27 12:12:45 +01:00
Alivecow
328d76e7da Merge branch 'devel' into feat/container 2025-02-26 21:28:56 +01:00
Christoph J. Scherr
3978dc37bb
Merge pull request #13 from senju1337/feat/haiku-backend
backend to save and load haiku, integrated with the existing frontend
2025-02-26 21:25:52 +01:00
Alivecow
3825b639ec refactor: Add template for dockerignore
Refs: OPS-10
2025-02-26 20:39:48 +01:00
Alivecow
42e53703e8 refactor: Change volume mount to avoid unneded files
Refs: OPS-10
2025-02-26 20:33:33 +01:00
Alivecow
783eea121c feat: Add dockerignore
Refs: OPS-10
2025-02-26 20:24:17 +01:00
Christoph J. Scherr
5068f0c38c
chore: removed unused import 2025-02-25 18:51:29 +01:00
Christoph J. Scherr
1740f8d3df
refactor: remove unneeded log of haiku_id in haiku_view 2025-02-25 18:45:22 +01:00
github-actions[bot]
97dc2edbaf ci: automatic Python Formatter changes 2025-02-25 17:40:50 +00:00
Christoph J. Scherr
c7d8b9504a
test: test_save_and_load_haiku needed to be adjusted for the new Haiku dataclass 2025-02-25 18:40:23 +01:00
Christoph J. Scherr
b32996499c
chore: remove unused import 2025-02-25 18:40:02 +01:00
Christoph J. Scherr
55d6e91a11
docs: exchange my synonym for my real name in pyproject.toml 2025-02-25 18:36:08 +01:00
Christoph J. Scherr
82f8c7a721
feat: store lines of a haiku, not just as a str
Refs: OPS-24
2025-02-25 18:33:15 +01:00
Christoph J. Scherr
5fa2122972
fix: haiku_view still used jinja as extension 2025-02-25 18:32:29 +01:00
Christoph J. Scherr
3fcfdb2c8e
chore: remove old hacky "test" code 2025-02-25 18:32:13 +01:00
Christoph J. Scherr
44ad774ada
feat: redirect /haiku to /haiku/<latest-id>
Refs: OPS-25
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
588cbeb001
test: refactor store manager tests for changes
Refs: 9f3ebf6e98d0fc8a7d32e251a4468866bd55a076 OPS-22
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
4ce43ec54d
feat: get_id_of_latest_haiku instead of load_latest_haiku
Refs: OP-22
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
e700771c53
feat: add haiku dataclass
previous commit for this did not stage the right file.

Refs: OPS-23
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
602cba280a
test: tests for the new haiku specific methods of the store manager
Refs: OPS-22
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
3a36366865
feat: add haiku specific methods to the store manager
Refs: OPS-22
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
ccbe7fd51b
feat: add haiku dataclass
Refs: OPS-23
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
6b6f442408
refactor: update store to use the document ids instead of uuids
Refs: OPS-21 OPS-16
2025-02-25 18:21:57 +01:00
Christoph J. Scherr
d7dece3424
fix: flake8 lint for unused pytest in a test 2025-02-25 18:21:57 +01:00
Christoph J. Scherr
1edfd7b0f5
fix: new_id in store_manager generated a bad id, only returns the actual data now 2025-02-25 18:21:56 +01:00
Christoph J. Scherr
5aba3981ee
test: store_manager sanity check
Refs: OPS.19
2025-02-25 18:21:56 +01:00
Christoph J. Scherr
e6b10ce96e
feat: store manager basic implementation
Refs: OPS-16
2025-02-25 18:21:56 +01:00
Christoph J. Scherr
554f3bfffc
refactor: rename jinja files in extends 2025-02-25 18:21:52 +01:00
Christoph J. Scherr
cba9cb1e18
refactor: rename all jinja files to html for autoescaping 2025-02-25 18:20:04 +01:00
Alivecow
c72ee2617e feat: Create ollama container and pull initial image.
Refs: OPS-17, OPS-12, OPS,10
2025-02-25 15:51:14 +01:00
Guts
19c15b0cb7
Merge pull request #10 from senju1337/feat/basic-site
feat: add basic page for Haiku and linked it to home
2025-02-25 15:07:21 +01:00
github-actions[bot]
ddc869e36d ci: automatic Python Formatter changes 2025-02-25 13:55:16 +00:00
0xjrx
ce42cb4eea fix: remove dictionary and add uniform view names
Refs: OPS-11
2025-02-25 14:54:24 +01:00
0xjrx
322d0684a1 fix: use dictionary to store the views and pass them to the jinja templates for easier access
Refs: OPS-11
2025-02-25 14:48:25 +01:00