mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 05:00:40 +08:00
rename files with underscore
This commit is contained in:
parent
534396bce5
commit
d149e21896
@ -4,7 +4,7 @@
|
|||||||
import log from "../../../log.js";
|
import log from "../../../log.js";
|
||||||
import type { Response } from "express";
|
import type { Response } from "express";
|
||||||
import type { StreamChunk } from "../../ai_interface.js";
|
import type { StreamChunk } from "../../ai_interface.js";
|
||||||
import type { LLMStreamMessage } from "../interfaces/ws-messages.js";
|
import type { LLMStreamMessage } from "../interfaces/ws_messages.js";
|
||||||
import type { ChatSession } from "../interfaces/session.js";
|
import type { ChatSession } from "../interfaces/session.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -50,7 +50,7 @@ export class StreamHandler {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Import the tool handler
|
// Import the tool handler
|
||||||
const { ToolHandler } = await import('./tool-handler.js');
|
const { ToolHandler } = await import('./tool_handler.js');
|
||||||
|
|
||||||
// Generate the LLM completion with streaming enabled
|
// Generate the LLM completion with streaming enabled
|
||||||
const response = await service.generateChatCompletion(aiMessages, {
|
const response = await service.generateChatCompletion(aiMessages, {
|
||||||
@ -198,7 +198,7 @@ export class StreamHandler {
|
|||||||
service?: any
|
service?: any
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
// Import tool handler lazily to avoid circular dependencies
|
// Import tool handler lazily to avoid circular dependencies
|
||||||
const { ToolHandler } = await import('./tool-handler.js');
|
const { ToolHandler } = await import('./tool_handler.js');
|
||||||
|
|
||||||
let messageContent = '';
|
let messageContent = '';
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
import log from "../../../log.js";
|
import log from "../../../log.js";
|
||||||
import type { Message } from "../../ai_interface.js";
|
import type { Message } from "../../ai_interface.js";
|
||||||
import SessionsStore from "../sessions-store.js";
|
import SessionsStore from "../sessions_store.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the execution of LLM tools
|
* Handles the execution of LLM tools
|
@ -1,14 +1,14 @@
|
|||||||
/**
|
/**
|
||||||
* Chat module export
|
* Chat module export
|
||||||
*/
|
*/
|
||||||
import restChatService from './rest-chat-service.js';
|
import restChatService from './rest_chat_service.js';
|
||||||
import sessionsStore from './sessions-store.js';
|
import sessionsStore from './sessions_store.js';
|
||||||
import { ContextHandler } from './handlers/context-handler.js';
|
import { ContextHandler } from './handlers/context_handler.js';
|
||||||
import { ToolHandler } from './handlers/tool-handler.js';
|
import { ToolHandler } from './handlers/tool_handler.js';
|
||||||
import { StreamHandler } from './handlers/stream-handler.js';
|
import { StreamHandler } from './handlers/stream_handler.js';
|
||||||
import * as messageFormatter from './utils/message-formatter.js';
|
import * as messageFormatter from './utils/message-formatter.js';
|
||||||
import type { ChatSession, ChatMessage, NoteSource } from './interfaces/session.js';
|
import type { ChatSession, ChatMessage, NoteSource } from './interfaces/session.js';
|
||||||
import type { LLMStreamMessage } from './interfaces/ws-messages.js';
|
import type { LLMStreamMessage } from './interfaces/ws_messages.js';
|
||||||
|
|
||||||
// Export components
|
// Export components
|
||||||
export {
|
export {
|
||||||
|
@ -11,13 +11,13 @@ import options from "../../options.js";
|
|||||||
import { SEARCH_CONSTANTS } from '../constants/search_constants.js';
|
import { SEARCH_CONSTANTS } from '../constants/search_constants.js';
|
||||||
|
|
||||||
// Import our refactored modules
|
// Import our refactored modules
|
||||||
import { ContextHandler } from "./handlers/context-handler.js";
|
import { ContextHandler } from "./handlers/context_handler.js";
|
||||||
import { ToolHandler } from "./handlers/tool-handler.js";
|
import { ToolHandler } from "./handlers/tool_handler.js";
|
||||||
import { StreamHandler } from "./handlers/stream-handler.js";
|
import { StreamHandler } from "./handlers/stream_handler.js";
|
||||||
import SessionsStore from "./sessions-store.js";
|
import SessionsStore from "./sessions_store.js";
|
||||||
import * as MessageFormatter from "./utils/message-formatter.js";
|
import * as MessageFormatter from "./utils/message-formatter.js";
|
||||||
import type { NoteSource } from "./interfaces/session.js";
|
import type { NoteSource } from "./interfaces/session.js";
|
||||||
import type { LLMStreamMessage } from "./interfaces/ws-messages.js";
|
import type { LLMStreamMessage } from "./interfaces/ws_messages.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service to handle chat API interactions
|
* Service to handle chat API interactions
|
@ -5,6 +5,6 @@
|
|||||||
* See chat/rest-chat-service.ts for the actual implementation.
|
* See chat/rest-chat-service.ts for the actual implementation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import restChatService from './chat/rest-chat-service.js';
|
import restChatService from './chat/rest_chat_service.js';
|
||||||
export * from './chat/interfaces/session.js';
|
export * from './chat/interfaces/session.js';
|
||||||
export default restChatService;
|
export default restChatService;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user