:recycle: [Refactor] Simplify setup stage, and start to support mobile devices
Browse files- apps/llm_mixer/index.html +1 -1
- apps/llm_mixer/js/main.js +4 -5
apps/llm_mixer/index.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<meta charset="UTF-8" />
|
4 |
-
|
5 |
<head>
|
6 |
<title>LLM Mixer</title>
|
7 |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<meta charset="UTF-8" />
|
4 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5 |
<head>
|
6 |
<title>LLM Mixer</title>
|
7 |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
|
apps/llm_mixer/js/main.js
CHANGED
@@ -26,7 +26,11 @@ function auto_resize_user_input() {
|
|
26 |
function setup_interactive_components() {
|
27 |
setup_available_models_on_select();
|
28 |
setup_temperature_on_select();
|
|
|
29 |
bind_chat_buttons();
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
function register_user_input_history_buttons_callbacks() {
|
@@ -82,10 +86,5 @@ function adjust_messagers_container_max_height() {
|
|
82 |
}
|
83 |
|
84 |
$(document).ready(function () {
|
85 |
-
// load_available_models();
|
86 |
-
auto_resize_user_input();
|
87 |
setup_interactive_components();
|
88 |
-
register_user_input_history_buttons_callbacks();
|
89 |
-
adjust_messagers_container_max_height();
|
90 |
-
$(window).on("resize", adjust_messagers_container_max_height);
|
91 |
});
|
|
|
26 |
function setup_interactive_components() {
|
27 |
setup_available_models_on_select();
|
28 |
setup_temperature_on_select();
|
29 |
+
auto_resize_user_input();
|
30 |
bind_chat_buttons();
|
31 |
+
register_user_input_history_buttons_callbacks();
|
32 |
+
adjust_messagers_container_max_height();
|
33 |
+
$(window).on("resize", adjust_messagers_container_max_height);
|
34 |
}
|
35 |
|
36 |
function register_user_input_history_buttons_callbacks() {
|
|
|
86 |
}
|
87 |
|
88 |
$(document).ready(function () {
|
|
|
|
|
89 |
setup_interactive_components();
|
|
|
|
|
|
|
90 |
});
|