add limits related to current messages to config
This commit is contained in:
parent
4f4b708ba5
commit
02730ff488
3 changed files with 13 additions and 3 deletions
|
@ -31,4 +31,14 @@ export default class config {
|
|||
model: "gpt-3.5-turbo",
|
||||
max_tokens: 384,
|
||||
};
|
||||
|
||||
/** limits for message selection */
|
||||
static readonly limits = {
|
||||
/** maximum time in the past for messages (in miliseconds) */
|
||||
time: 60*60*1000,
|
||||
/** maximum number of messages to select (maximum 100) */
|
||||
messages: 50,
|
||||
/** maximum total token usage for messages */
|
||||
tokens: 2048,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue