mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
Update llm.py
This commit is contained in:
@@ -13,6 +13,7 @@ from googlesearch import search # pip install googlesearch-python
|
||||
openWebUI = False
|
||||
openWebUI_api_key = "your_api_key"
|
||||
openWebUI_collection_id = "your_collection_id"
|
||||
openWebUI_base_url = 'http://localhost:3000/api'
|
||||
|
||||
# This is my attempt at a simple RAG implementation it will require some setup
|
||||
# you will need to have the RAG data in a folder named rag in the data directory (../data/rag)
|
||||
@@ -22,7 +23,6 @@ ragDEV = False
|
||||
|
||||
if openWebUI:
|
||||
import requests
|
||||
openWebUI_base_url = 'http://localhost:3000/api'
|
||||
|
||||
if ragDEV:
|
||||
import os
|
||||
@@ -39,7 +39,6 @@ antiFloodLLM = []
|
||||
llmChat_history = {}
|
||||
trap_list_llm = ("ask:", "askai")
|
||||
|
||||
|
||||
meshBotAI = """
|
||||
FROM {llmModel}
|
||||
SYSTEM
|
||||
|
||||
Reference in New Issue
Block a user