mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-11 13:05:22 +00:00
upgraded code
This commit is contained in:
parent
3261f6087c
commit
6d8bb6c647
@ -1,4 +1,4 @@
|
|||||||
# LoLLMs v18.0.0 Changelog
|
# LoLLMs v18.0 (alpha) Changelog
|
||||||
## LoLLMs v18 'Matrix'
|
## LoLLMs v18 'Matrix'
|
||||||
|
|
||||||
01010100 01001000 01000101 01010010 01000101 00100000
|
01010100 01001000 01000101 01010010 01000101 00100000
|
||||||
|
@ -31,6 +31,6 @@ RUN echo "lollms_path: /app/lollms-webui/lollms_core/lollms\nlollms_personal_pat
|
|||||||
EXPOSE 9600
|
EXPOSE 9600
|
||||||
|
|
||||||
# Set the entrypoint to our start script
|
# Set the entrypoint to our start script
|
||||||
CMD ["python", "/app/app.py","--host","0.0.0.0"]
|
CMD ["python", "/app/app.py", "--host", "0.0.0.0", "--force-accept-remote-access"]
|
||||||
|
|
||||||
|
|
||||||
|
5
app.py
5
app.py
@ -173,6 +173,7 @@ if __name__ == "__main__":
|
|||||||
"--host", type=str, default=None, help="the hostname to listen on"
|
"--host", type=str, default=None, help="the hostname to listen on"
|
||||||
)
|
)
|
||||||
parser.add_argument("--port", type=int, default=None, help="the port to listen on")
|
parser.add_argument("--port", type=int, default=None, help="the port to listen on")
|
||||||
|
parser.add_argument("--force-accept-remote-access", action='store_true', help="force to accept remote access")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
root_path = Path(__file__).parent
|
root_path = Path(__file__).parent
|
||||||
@ -230,6 +231,9 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if args.force_accept_remote_access:
|
||||||
|
config.force_accept_remote_access = True
|
||||||
|
|
||||||
# class EndpointSpecificCORSMiddleware(BaseHTTPMiddleware):
|
# class EndpointSpecificCORSMiddleware(BaseHTTPMiddleware):
|
||||||
# async def dispatch(self, request: Request, call_next):
|
# async def dispatch(self, request: Request, call_next):
|
||||||
# if request.url.path == "/v1/completions":
|
# if request.url.path == "/v1/completions":
|
||||||
@ -498,6 +502,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# if autoshow
|
# if autoshow
|
||||||
|
|
||||||
|
|
||||||
if config.auto_show_browser and not config.headless_server_mode:
|
if config.auto_show_browser and not config.headless_server_mode:
|
||||||
if config["host"] == "0.0.0.0":
|
if config["host"] == "0.0.0.0":
|
||||||
webbrowser.open(
|
webbrowser.open(
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>LoLLMS WebUI</title>
|
<title>LoLLMS WebUI</title>
|
||||||
<script type="module" crossorigin src="/assets/index-BQ9rK9Ub.js"></script>
|
<script type="module" crossorigin src="/assets/index-BtOzy8LJ.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D-1JTBOJ.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-CqCqluH7.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
@ -641,6 +641,7 @@
|
|||||||
<option value="lollms_simplified">Lollms simplified communication template</option>
|
<option value="lollms_simplified">Lollms simplified communication template</option>
|
||||||
<option value="bare">Bare, useful when in chat mode</option>
|
<option value="bare">Bare, useful when in chat mode</option>
|
||||||
<option value="llama3">LLama3 communication template</option>
|
<option value="llama3">LLama3 communication template</option>
|
||||||
|
<option value="lucie">Lucie communication template</option>
|
||||||
<option value="mistral">Mistral communication template</option>
|
<option value="mistral">Mistral communication template</option>
|
||||||
<option value="deepseek">DeepSeek communication template</option>
|
<option value="deepseek">DeepSeek communication template</option>
|
||||||
</select>
|
</select>
|
||||||
@ -5006,6 +5007,19 @@ export default {
|
|||||||
this.configFile.end_ai_header_id_template = "<|end_header_id|>"
|
this.configFile.end_ai_header_id_template = "<|end_header_id|>"
|
||||||
this.configFile.end_ai_message_id_template = ""
|
this.configFile.end_ai_message_id_template = ""
|
||||||
this.settingsChanged=true
|
this.settingsChanged=true
|
||||||
|
} else if (selectedOption === 'lucie') {
|
||||||
|
console.log("Using lucie template")
|
||||||
|
this.configFile.start_header_id_template = "<s><|start_header_id|>"
|
||||||
|
this.configFile.system_message_template = "system"
|
||||||
|
this.configFile.end_header_id_template = "<|end_header_id|>\n\n"
|
||||||
|
this.configFile.separator_template = "<|eot_id|>"
|
||||||
|
this.configFile.start_user_header_id_template = "<|start_header_id|>"
|
||||||
|
this.configFile.end_user_header_id_template = "<|end_header_id|>\n\n"
|
||||||
|
this.configFile.end_user_message_id_template = ""
|
||||||
|
this.configFile.start_ai_header_id_template = "<|start_header_id|>"
|
||||||
|
this.configFile.end_ai_header_id_template = "<|end_header_id|>\n\n"
|
||||||
|
this.configFile.end_ai_message_id_template = ""
|
||||||
|
this.settingsChanged=true
|
||||||
} else if (selectedOption === 'mistral') {
|
} else if (selectedOption === 'mistral') {
|
||||||
console.log("Using mistral template")
|
console.log("Using mistral template")
|
||||||
this.configFile.start_header_id_template = "[INST]"
|
this.configFile.start_header_id_template = "[INST]"
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 5f1a306fffa4e80c5ae38c997ee89c0731827875
|
Subproject commit de458d56ce9796bcfed17b24f7c99da50fe9db01
|
Loading…
x
Reference in New Issue
Block a user