-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnode-llm.js
More file actions
46 lines (40 loc) · 1.18 KB
/
node-llm.js
File metadata and controls
46 lines (40 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* @file node-llm.js
* @description This file acts as a facade, aggregating and exporting all LLM-related functionalities
* from specialized modules. This maintains a consistent public API for the rest of the application,
* preventing the need for refactoring in consumer files like electron-main.js.
*/
const data_functions = require('./node-llm-data');
const task_functions = require('./node-llm-tasks');
// The API functions are used internally by the task and data modules,
// so they don't need to be re-exported from this top-level facade.
const {
cancel_analysis,
cancel_auto_select,
analyze_file,
reanalyze_modified_files,
get_relevant_files_from_prompt,
ask_question_about_code_stream,
handle_direct_prompt_stream,
identify_project_files
} = task_functions;
const {
refresh_llms,
get_session_stats,
get_llm_log
} = data_functions;
module.exports = {
// Functions from node-llm-data.js
refresh_llms,
get_session_stats,
get_llm_log,
// Functions from node-llm-tasks.js
cancel_analysis,
cancel_auto_select,
analyze_file,
reanalyze_modified_files,
get_relevant_files_from_prompt,
ask_question_about_code_stream,
handle_direct_prompt_stream,
identify_project_files
};