mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
chore(monorepo/server): fix build errors due to wrong imports
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* Message formatting utilities for different LLM providers
|
||||
*/
|
||||
import type { Message } from "../../ai_interface.js";
|
||||
import { CONTEXT_PROMPTS } from "../../constants/llm_prompt_constants.js";
|
||||
|
||||
/**
|
||||
* Interface for message formatters
|
||||
@@ -111,9 +112,6 @@ export function buildContextFromNotes(sources: any[], query: string): string {
|
||||
return query || '';
|
||||
}
|
||||
|
||||
// Import the CONTEXT_PROMPTS constant
|
||||
const { CONTEXT_PROMPTS } = require('../../constants/llm_prompt_constants.js');
|
||||
|
||||
// Use the template from the constants file, replacing placeholders
|
||||
return CONTEXT_PROMPTS.CONTEXT_NOTES_WRAPPER
|
||||
.replace('{noteContexts}', noteContexts)
|
||||
|
||||
Reference in New Issue
Block a user