91
General Discussion / Re: Project X.I.A.R. Extremely Intelligent Artificial Responses
« Last post by Checker57 on February 01, 2025, 12:49:15 am »The secret is out of the bag, there is no secret. Just code. Buahaha Ahem, that established... I dove into the ocean of code and used that now infamous AI "Deepseek" to have it review the code and make it work... This is what it came up with below.
The issue I see is having the proper URL?
The issue I see is having the proper URL?
Code: [Select]
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