mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
require that ChatCompletionOptions be defined
This commit is contained in:
parent
8ff3f4f269
commit
4f812cd2ce
@ -55,7 +55,7 @@ export type StreamCallback = (text: string, isDone: boolean) => Promise<void> |
|
|||||||
*/
|
*/
|
||||||
export interface ChatPipelineInput extends PipelineInput {
|
export interface ChatPipelineInput extends PipelineInput {
|
||||||
messages: Message[];
|
messages: Message[];
|
||||||
options?: ChatCompletionOptions;
|
options: ChatCompletionOptions;
|
||||||
noteId?: string;
|
noteId?: string;
|
||||||
query?: string;
|
query?: string;
|
||||||
showThinking?: boolean;
|
showThinking?: boolean;
|
||||||
@ -114,14 +114,14 @@ export interface MessagePreparationInput extends PipelineInput {
|
|||||||
messages: Message[];
|
messages: Message[];
|
||||||
context?: string;
|
context?: string;
|
||||||
systemPrompt?: string;
|
systemPrompt?: string;
|
||||||
options?: ChatCompletionOptions;
|
options: ChatCompletionOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for the pipeline stage that performs model selection
|
* Interface for the pipeline stage that performs model selection
|
||||||
*/
|
*/
|
||||||
export interface ModelSelectionInput extends PipelineInput {
|
export interface ModelSelectionInput extends PipelineInput {
|
||||||
options?: ChatCompletionOptions;
|
options: ChatCompletionOptions;
|
||||||
query?: string;
|
query?: string;
|
||||||
contentLength?: number;
|
contentLength?: number;
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ export interface ModelSelectionInput extends PipelineInput {
|
|||||||
*/
|
*/
|
||||||
export interface LLMCompletionInput extends PipelineInput {
|
export interface LLMCompletionInput extends PipelineInput {
|
||||||
messages: Message[];
|
messages: Message[];
|
||||||
options?: ChatCompletionOptions;
|
options: ChatCompletionOptions;
|
||||||
provider?: string;
|
provider?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ export interface LLMCompletionInput extends PipelineInput {
|
|||||||
*/
|
*/
|
||||||
export interface ResponseProcessingInput extends PipelineInput {
|
export interface ResponseProcessingInput extends PipelineInput {
|
||||||
response: ChatResponse;
|
response: ChatResponse;
|
||||||
options?: ChatCompletionOptions;
|
options: ChatCompletionOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -149,7 +149,7 @@ export interface ResponseProcessingInput extends PipelineInput {
|
|||||||
export interface ToolExecutionInput extends PipelineInput {
|
export interface ToolExecutionInput extends PipelineInput {
|
||||||
response: ChatResponse;
|
response: ChatResponse;
|
||||||
messages: Message[];
|
messages: Message[];
|
||||||
options?: ChatCompletionOptions;
|
options: ChatCompletionOptions;
|
||||||
maxIterations?: number;
|
maxIterations?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user