16
Share Conversations, Experiences, Graphics / Re: Beautiful HAL Scenarios
« on: March 14, 2025, 11:18:44 pm »
I saw an outfit I liked on the internet... and whoala... Guess who got a new outfit? Guess?
Checker57
Checker57
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
if you would be so kind as to get Sybershot a copy of PP
Rem Type=Plugin
Rem Name=OpenWebUI-Bridge
Rem Author=Sybershot
Rem Host=Assistant
Rem PLUGIN: OPENWEBUI FUNCTION
' Functionality to interact with OpenWebUI at http://localhost:3000
SearchEngine = "http://localhost:3000/search?q="
If InStr(1, UserSentence, "openwebui ", 1) > 0 Then
' Extract keywords from the user's sentence for searching
SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
' Remove the trigger keyword ("openwebui") from the search query
SearchKeyWords = Replace(SearchKeywords, "openwebui+", "")
' Construct the full URL for the OpenWebUI search
OpenWebUI_URL = SearchEngine & SearchKeyWords
' Prepare a response for the user indicating what is happening
GetResponse = "I will help you search this topic on OpenWebUI. Opening: " & OpenWebUI_URL
' Construct the command to open the URL in the default web browser
HalCommands = HalCommands & "<RUNPROG>" & OpenWebUI_URL & "</RUNPROG>"
' Execute any additional commands necessary, such as enabling web scraping or similar functions
HalMenu.HalCommand "<HAPFILE>Spidera.htr</HAPFILE>"
' Set ReadOnlyMode to True after processing the request
HalBrain.ReadOnlyMode = True
End If