Add function handling for OpenAI model

for now it's querying only time, but in the future there will be more commands
This commit is contained in:
Wroclaw 2023-07-23 05:50:16 +02:00
parent bebef021fb
commit 0df05e2f06
4 changed files with 169 additions and 33 deletions

View file

@ -8,12 +8,15 @@ datasource db {
}
model Usage {
timestamp DateTime @id
@@id([timestamp, functionRan])
timestamp DateTime
user BigInt
channel BigInt
guild BigInt?
usageReguest Int
usageResponse Int
functionName String?
functionRan Int @default(0)
}
model Limits {