mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Keep track of API usage in user accounts, improve approval mechanism (#95)
This commit is contained in:
@@ -8,6 +8,11 @@ interface MessageBase {
|
||||
id: string;
|
||||
role: MessageRole;
|
||||
repositoryId?: string;
|
||||
peanuts?: number;
|
||||
|
||||
// Not part of the protocol, indicates whether the user has explicitly approved
|
||||
// the message. Once approved, the approve/reject UI is not shown again for the message.
|
||||
approved?: boolean;
|
||||
}
|
||||
|
||||
interface MessageText extends MessageBase {
|
||||
|
||||
Reference in New Issue
Block a user