extracts Risu auth into new middleware so queue can use it too

This commit is contained in:
nai-degen
2023-07-22 13:48:02 -05:00
parent b8534dafae
commit e2bd8a6b86
5 changed files with 93 additions and 54 deletions
+2
View File
@@ -10,6 +10,8 @@ declare global {
inboundApi: AIService | "kobold";
/** Denotes the format of the request being proxied to the API. */
outboundApi: AIService;
/** If the request comes from a RisuAI.xyz user, this is their token. */
risuToken?: string;
user?: User;
isStreaming?: boolean;
startTime: number;