mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 11:49:01 +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 type { Response } from "express";
|
||||
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";
|
||||
|
||||
/**
|
||||
@ -50,7 +50,7 @@ export class StreamHandler {
|
||||
|
||||
try {
|
||||
// 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
|
||||
const response = await service.generateChatCompletion(aiMessages, {
|
||||
@ -198,7 +198,7 @@ export class StreamHandler {
|
||||
service?: any
|
||||
): Promise<void> {
|
||||
// Import tool handler lazily to avoid circular dependencies
|
||||
const { ToolHandler } = await import('./tool-handler.js');
|
||||
const { ToolHandler } = await import('./tool_handler.js');
|
||||
|
||||
let messageContent = '';
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
import log from "../../../log.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
|
@ -1,14 +1,14 @@
|
||||
/**
|
||||
* Chat module export
|
||||
*/
|
||||
import restChatService from './rest-chat-service.js';
|
||||
import sessionsStore from './sessions-store.js';
|
||||
import { ContextHandler } from './handlers/context-handler.js';
|
||||
import { ToolHandler } from './handlers/tool-handler.js';
|
||||
import { StreamHandler } from './handlers/stream-handler.js';
|
||||
import restChatService from './rest_chat_service.js';
|
||||
import sessionsStore from './sessions_store.js';
|
||||
import { ContextHandler } from './handlers/context_handler.js';
|
||||
import { ToolHandler } from './handlers/tool_handler.js';
|
||||
import { StreamHandler } from './handlers/stream_handler.js';
|
||||
import * as messageFormatter from './utils/message-formatter.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 {
|
||||
|
@ -11,13 +11,13 @@ import options from "../../options.js";
|
||||
import { SEARCH_CONSTANTS } from '../constants/search_constants.js';
|
||||
|
||||
// Import our refactored modules
|
||||
import { ContextHandler } from "./handlers/context-handler.js";
|
||||
import { ToolHandler } from "./handlers/tool-handler.js";
|
||||
import { StreamHandler } from "./handlers/stream-handler.js";
|
||||
import SessionsStore from "./sessions-store.js";
|
||||
import { ContextHandler } from "./handlers/context_handler.js";
|
||||
import { ToolHandler } from "./handlers/tool_handler.js";
|
||||
import { StreamHandler } from "./handlers/stream_handler.js";
|
||||
import SessionsStore from "./sessions_store.js";
|
||||
import * as MessageFormatter from "./utils/message-formatter.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
|
@ -5,6 +5,6 @@
|
||||
* 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 default restChatService;
|
||||
|
Loading…
x
Reference in New Issue
Block a user