upgraded version

This commit is contained in:
Saifeddine ALOUI 2024-01-16 00:43:10 +01:00
parent 33437f936f
commit a73618be61
3 changed files with 19 additions and 12 deletions

View File

@ -23,7 +23,7 @@ from socketio import ASGIApp
sio = socketio.AsyncServer(async_mode="asgi")
app = FastAPI()
if __name__ == "__main__":
def main():
# Parsong parameters
parser = argparse.ArgumentParser(description="Start the chatbot FastAPI app.")
@ -87,3 +87,6 @@ if __name__ == "__main__":
uvicorn.run(app, host=config.host, port=config.port)
if __name__ == "__main__":
main()

View File

@ -310,3 +310,12 @@ async def set_active_binding_settings(request: Request):
trace_exception(ex)
lollmsElfServer.error(ex)
return {"status":False,"error":str(ex)}
@router.get("/update_binding_settings")
def update_binding_settings(self):
if lollmsElfServer.binding:
lollmsElfServer.binding.settings_updated()
ASCIIColors.green("Binding setting updated successfully")
return {"status":True}
else:
return {"status":False, 'error':"no binding found"}

View File

@ -26,8 +26,8 @@ def get_all_files(path):
setuptools.setup(
name="lollms",
version="7.1.0",
author="Saifeddine ALOUI",
version="7.1.1",
author="Saifeddine ALOUI (ParisNeo)",
author_email="aloui.saifeddine@gmail.com",
description="A python library for AI personality definition",
long_description=long_description,
@ -38,17 +38,12 @@ setuptools.setup(
install_requires=requirements,
entry_points={
'console_scripts': [
'lollms-elf = lollms.apps.elf:main',
'lollms-server = lollms.server.server:main',
'lollms-console = lollms.apps.console:main',
'lollms-settings = lollms.apps.settings:main',
'lollms-discord = lollms.apps.discord_bot:main',
'lollms-playground = lollms.apps.playground:main'
'lollms-elf = lollms.server.elf:main',
],
},
extras_require={"dev": requirements_dev},
classifiers=[
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],