From 4f812cd2ce14d1c826923f9d54a24bdd55b36b36 Mon Sep 17 00:00:00 2001 From: perf3ct Date: Wed, 9 Apr 2025 17:39:47 +0000 Subject: [PATCH] require that ChatCompletionOptions be defined --- src/services/llm/pipeline/interfaces.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/services/llm/pipeline/interfaces.ts b/src/services/llm/pipeline/interfaces.ts index 218f91492..18163d7f9 100644 --- a/src/services/llm/pipeline/interfaces.ts +++ b/src/services/llm/pipeline/interfaces.ts @@ -55,7 +55,7 @@ export type StreamCallback = (text: string, isDone: boolean) => Promise | */ export interface ChatPipelineInput extends PipelineInput { messages: Message[]; - options?: ChatCompletionOptions; + options: ChatCompletionOptions; noteId?: string; query?: string; showThinking?: boolean; @@ -114,14 +114,14 @@ export interface MessagePreparationInput extends PipelineInput { messages: Message[]; context?: string; systemPrompt?: string; - options?: ChatCompletionOptions; + options: ChatCompletionOptions; } /** * Interface for the pipeline stage that performs model selection */ export interface ModelSelectionInput extends PipelineInput { - options?: ChatCompletionOptions; + options: ChatCompletionOptions; query?: string; contentLength?: number; } @@ -131,7 +131,7 @@ export interface ModelSelectionInput extends PipelineInput { */ export interface LLMCompletionInput extends PipelineInput { messages: Message[]; - options?: ChatCompletionOptions; + options: ChatCompletionOptions; provider?: string; } @@ -140,7 +140,7 @@ export interface LLMCompletionInput extends PipelineInput { */ export interface ResponseProcessingInput extends PipelineInput { response: ChatResponse; - options?: ChatCompletionOptions; + options: ChatCompletionOptions; } /** @@ -149,7 +149,7 @@ export interface ResponseProcessingInput extends PipelineInput { export interface ToolExecutionInput extends PipelineInput { response: ChatResponse; messages: Message[]; - options?: ChatCompletionOptions; + options: ChatCompletionOptions; maxIterations?: number; }