diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-15 22:35:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-15 22:35:45 +0200 |
| commit | 9e19e9d14ef1e08b26fc474cbc9793f0316fd91f (patch) | |
| tree | 879a3695ec3e8cc28a956354b2b6a5607a12d3a9 /rcm | |
| parent | 8aa29fa99876e3cce1822c295d8e5b412d13e9bb (diff) | |
Add Hyperstack VM automation and model defaults
Diffstat (limited to 'rcm')
| -rw-r--r-- | rcm/Rakefile | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/rcm/Rakefile b/rcm/Rakefile index d6f3e11..ed6f862 100644 --- a/rcm/Rakefile +++ b/rcm/Rakefile @@ -9,23 +9,32 @@ task :english do 'hexai PROMPT' end - prompt improve english do + agent gpt20b do + 'ollama run gpt-oss:20b --hidethinking PROMPT' + end + + agent gpt120b do + ENV['OLLAMA_HOST'] = 'http://hyperstack.wg1:11434' + 'ollama run gpt-oss:120b --hidethinking PROMPT' + end + + prompt improve blog english do <<~TEXT + This is text from my blog in Gemini Gemtext format plus extra tags. Don't remove or modify any lines starting with any of those characters: < > # ` * - Correct English spellings and grammar. - Improve clarity of the text. - Don't introduce any new text or headers. - Don't modify any source code text unless code comments. + Correct English spellings and grammar. Improve clarity of the text. + Don't introduce any new text or headers. Don't modify any source code text unless code comments. + Only point out the corrections you would someone to implement. TEXT end - tpl_files = Dir.glob(File.expand_path('~/git/foo.zone-content/gemtext/**/*.tpl')) - gmi_files = Dir.glob(File.expand_path('~/git/foo.zone-content/gemtext/**/*.gmi')).reject do |gmi| - File.exist?("#{gmi}.tpl") + blog_contents = Dir.glob(File.expand_path('~/git/foo.zone-content/gemtext/**/*.gmi')).map do |gmi| + File.exist?("#{gmi}.tpl") ? "#{gmi}.tpl" : gmi end - (tpl_files + gmi_files).each do |f| - file f do - agent hexai improve english + + blog_contents.each do |blog_content| + file blog_content do + agent gpt120b improve blog english end end end |
