You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 line
1.9KB

  1. {{define "settings"}}
  2. <!doctype html>
  3. <html lang="en">
  4. <head>
  5. <title>{{.Title}}</title>
  6. {{template "head" .}}
  7. </head>
  8. <body>
  9. {{template "nav" .}}
  10. {{if .Msg}}<div class="flash flash-ok">{{.Msg}}</div>{{end}}
  11. {{if .Err}}<div class="flash flash-err">{{.Err}}</div>{{end}}
  12. <h1>Settings</h1>
  13. <p>QC-Settings plus globale Prompt-/Systemsteuerung fuer den spaeteren LLM-Flow.</p>
  14. <table>
  15. <tr><th>QC Base URL</th><td class="mono">{{.QCBaseURL}}</td></tr>
  16. <tr><th>Bearer token configured</th><td>{{if .TokenConfigured}}yes{{else}}no{{end}}</td></tr>
  17. <tr><th>Poll interval (seconds)</th><td>{{.PollIntervalSeconds}}</td></tr>
  18. <tr><th>Poll timeout (seconds)</th><td>{{.PollTimeoutSeconds}}</td></tr>
  19. <tr><th>Poll max concurrent</th><td>{{.PollMaxConcurrent}}</td></tr>
  20. <tr><th>Language output mode</th><td>{{.LanguageOutputMode}}</td></tr>
  21. </table>
  22. <h2>Globaler Master Prompt</h2>
  23. <p><small>Diese Einstellungen gelten systemweit und werden im normalen Build-/Review-Formular nicht mehr direkt editiert.</small></p>
  24. <form method="post" action="/settings/prompt">
  25. <input type="hidden" name="prompt_block_count" value="{{len .PromptBlocks}}">
  26. <div>
  27. <label>Master Prompt
  28. <textarea name="master_prompt">{{.MasterPrompt}}</textarea>
  29. </label>
  30. </div>
  31. <h3>Prompt-Bloecke (Standard)</h3>
  32. {{range $i, $block := .PromptBlocks}}
  33. <input type="hidden" name="prompt_block_id_{{$i}}" value="{{$block.ID}}">
  34. <div>
  35. <label>
  36. <input type="checkbox" name="prompt_block_enabled_{{$i}}" {{if $block.Enabled}}checked{{end}}>
  37. {{$block.Label}}
  38. </label>
  39. <input type="hidden" name="prompt_block_label_{{$i}}" value="{{$block.Label}}">
  40. <textarea name="prompt_block_instruction_{{$i}}">{{$block.Instruction}}</textarea>
  41. </div>
  42. {{end}}
  43. <button type="submit">Prompt-Settings speichern</button>
  44. </form>
  45. </body>
  46. </html>
  47. {{end}}