Small Documentation and Refactoring (#18)

* cleanup and documentation

* added dev message for parser

* grammar and other type replacements
This commit is contained in:
Kevin Dang
2024-02-18 17:39:00 -08:00
committed by GitHub
parent 1c62958c9f
commit 5e74736c57
7 changed files with 39 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
import { Message } from 'discord.js'
import ollama, { ChatResponse } from 'ollama'
import { UserMessage } from './events.js'
/**
* Method to send replies as normal text on discord like any other user
@@ -13,10 +14,7 @@ export function normalMessage(
channel: string,
model: string
},
msgHist: {
role: string,
content: string
}[]
msgHist: UserMessage[]
) {
// bot's respnse
let response: ChatResponse