Trending

#WebRepl

Latest posts tagged with #WebRepl on Bluesky

Latest Top
Trending

Posts tagged #WebRepl

Wired up ollama / ollama-powershell to Reptile (https://github.com/PowerShellWeb/Reptile) with the code below.

Got a "correct" answer and then who knows how many escape sequences that don't render right in the browser.

lol "Mostly works" 

~~~PowerShell
Reptile -Initialize {
    Import-Module ollama-powershell
} -SupportedCommand @(
    # We also need to add it to the list of supported commands.
    'TinyLlama'
) -Shell @(
    # Our shell is just a form with two inputs:    
    "<form action='/' method='post'>"
    # A date selector
    "<input id='date' name='prompt' value='What are you' />"
    # (with a label)
    "<label for='date'>The prompt</label>"
    # and a hidden input containing our script.
    "<input type='hidden' name='command' value='$(
        [Web.HttpUtility]::HtmlAttributeEncode('tinyllama $Prompt')
    )'></input>"
    "<input type='submit' value='go'></input>"
    "</form>"
)
~~~

Wired up ollama / ollama-powershell to Reptile (https://github.com/PowerShellWeb/Reptile) with the code below. Got a "correct" answer and then who knows how many escape sequences that don't render right in the browser. lol "Mostly works" ~~~PowerShell Reptile -Initialize { Import-Module ollama-powershell } -SupportedCommand @( # We also need to add it to the list of supported commands. 'TinyLlama' ) -Shell @( # Our shell is just a form with two inputs: "<form action='/' method='post'>" # A date selector "<input id='date' name='prompt' value='What are you' />" # (with a label) "<label for='date'>The prompt</label>" # and a hidden input containing our script. "<input type='hidden' name='command' value='$( [Web.HttpUtility]::HtmlAttributeEncode('tinyllama $Prompt') )'></input>" "<input type='submit' value='go'></input>" "</form>" ) ~~~

When your local #AI #ollama #RaspberyPI #PowerShell #WebRepl experiment _mostly_ works...

Code in the alt text.

Using ollama powershell ( github.com/StartAutomat... ) and reptile ( github.com/PowerShellWe...)

1 0 0 0