multi bot partly working; bots won't shut up though
This commit is contained in:
@@ -21,7 +21,7 @@ export type ChatParams = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Format for the messages to be stored when communicating when the bot
|
||||
* Format for the messages to be stored when communicating with the bot
|
||||
* @param role either assistant, user, or system
|
||||
* @param content string of the message the user or assistant provided
|
||||
* @param images array of images that the user or assistant provided
|
||||
@@ -38,7 +38,7 @@ export interface EventProps {
|
||||
log: LogMethod,
|
||||
msgHist: Queue<UserMessage>,
|
||||
ollama: Ollama,
|
||||
defaultModel: String
|
||||
defaultModel: string
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,7 +79,7 @@ export function registerEvents(
|
||||
events: Event[],
|
||||
msgHist: Queue<UserMessage>,
|
||||
ollama: Ollama,
|
||||
defaultModel: String
|
||||
defaultModel: string
|
||||
): void {
|
||||
for (const { key, callback } of events) {
|
||||
client.on(key, (...args) => {
|
||||
@@ -94,4 +94,4 @@ export function registerEvents(
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user