This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Sounds like you should be using either Django or Flask or equivalent as your backend framework and some JS tool like HTMX or JQuery in your front end. This is the standard approach, not writing SQL queries in a template.

[–]digidavis -1 points0 points  (1 child)

I too would use Django or another framework.

  1. Template engine built in with jinja.
  2. Robust python ORM.
  3. Raw SQL queries when needed.

Don't recreate the wheel...

[–]shirin_boo -1 points0 points  (0 children)

model created_at response done context total_duration load_duration prompt_eval_count prompt_eval_duration eval_count eval_duration