feat(providers): add optimization modes
This commit is contained in:
parent
877735b852
commit
7cce853618
9 changed files with 294 additions and 88 deletions
|
|
@ -22,7 +22,7 @@ type Message = {
|
|||
|
||||
type WSMessage = {
|
||||
message: Message;
|
||||
copilot: boolean;
|
||||
optimizationMode: string;
|
||||
type: string;
|
||||
focusMode: string;
|
||||
history: Array<[string, string]>;
|
||||
|
|
@ -138,6 +138,7 @@ export const handleMessage = async (
|
|||
history,
|
||||
llm,
|
||||
embeddings,
|
||||
parsedWSMessage.optimizationMode,
|
||||
);
|
||||
|
||||
handleEmitterEvents(emitter, ws, id, parsedMessage.chatId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue