:recycle: [Refactor] Move buttons_binder to components
Browse files- {js β components}/buttons_binder.js +2 -2
- js/main.js +1 -1
{js β components}/buttons_binder.js
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { ChatCompletionsRequester } from "
|
2 |
import {
|
3 |
stop_latest_message_animation,
|
4 |
start_latest_message_animation,
|
@@ -6,7 +6,7 @@ import {
|
|
6 |
get_latest_message_content_displayer,
|
7 |
scroll_to_bottom,
|
8 |
set_user_scroll_status,
|
9 |
-
} from "
|
10 |
|
11 |
export function bind_chat_buttons() {
|
12 |
let send_user_input_binder = new SendUserInputButtonBinder();
|
|
|
1 |
+
import { ChatCompletionsRequester } from "../js/llm_requester.js";
|
2 |
import {
|
3 |
stop_latest_message_animation,
|
4 |
start_latest_message_animation,
|
|
|
6 |
get_latest_message_content_displayer,
|
7 |
scroll_to_bottom,
|
8 |
set_user_scroll_status,
|
9 |
+
} from "../js/chat_operator.js";
|
10 |
|
11 |
export function bind_chat_buttons() {
|
12 |
let send_user_input_binder = new SendUserInputButtonBinder();
|
js/main.js
CHANGED
@@ -2,7 +2,7 @@ import {
|
|
2 |
setup_available_models_on_select,
|
3 |
setup_temperature_on_select,
|
4 |
} from "./llm_models_loader.js";
|
5 |
-
import { bind_chat_buttons } from "
|
6 |
var user_input_history = [];
|
7 |
var user_input_history_idx = 0;
|
8 |
|
|
|
2 |
setup_available_models_on_select,
|
3 |
setup_temperature_on_select,
|
4 |
} from "./llm_models_loader.js";
|
5 |
+
import { bind_chat_buttons } from "../components/buttons_binder.js";
|
6 |
var user_input_history = [];
|
7 |
var user_input_history_idx = 0;
|
8 |
|