mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-22 17:52:35 +00:00
upgraded
This commit is contained in:
parent
bda9443313
commit
9bafa1f265
@ -1287,23 +1287,7 @@ class LoLLMsAPPI(LollmsApplication):
|
|||||||
|
|
||||||
return discussion_messages # Removes the last return
|
return discussion_messages # Removes the last return
|
||||||
|
|
||||||
def remove_text_from_string(self, string, text_to_find):
|
|
||||||
"""
|
|
||||||
Removes everything from the first occurrence of the specified text in the string (case-insensitive).
|
|
||||||
|
|
||||||
Parameters:
|
|
||||||
string (str): The original string.
|
|
||||||
text_to_find (str): The text to find in the string.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
str: The updated string.
|
|
||||||
"""
|
|
||||||
index = string.lower().find(text_to_find.lower())
|
|
||||||
|
|
||||||
if index != -1:
|
|
||||||
string = string[:index]
|
|
||||||
|
|
||||||
return string
|
|
||||||
|
|
||||||
def notify(self, content, status, client_id):
|
def notify(self, content, status, client_id):
|
||||||
self.socketio.emit('notification', {
|
self.socketio.emit('notification', {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 9f3eb91f568ab03c3f9ce69435a912583138f7d1
|
Subproject commit 2a00bede8cc684dea76320f4bd2f6ea8ce35109d
|
@ -1 +1 @@
|
|||||||
Subproject commit 2c2c172ef7e4f5c4dc8dffafc56b27e7ed559a06
|
Subproject commit dccef918d2cd289b5a300b7d4f9563df0d343300
|
Loading…
x
Reference in New Issue
Block a user