mirror of
https://github.com/open-webui/open-webui.git
synced 2025-03-28 18:52:14 +01:00
chore: format
This commit is contained in:
parent
c2eada36f1
commit
e2d60bd92e
@ -65,7 +65,6 @@ async def process_filter_functions(
|
||||
**(valves if valves else {})
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
# Prepare parameters
|
||||
sig = inspect.signature(handler)
|
||||
|
@ -18,7 +18,6 @@ async function getCredentials() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let msalInstance: PublicClientApplication | null = null;
|
||||
|
||||
// Initialize MSAL authentication
|
||||
@ -44,7 +43,9 @@ async function initializeMsal() {
|
||||
|
||||
return msalInstance;
|
||||
} catch (error) {
|
||||
throw new Error('MSAL initialization failed: ' + (error instanceof Error ? error.message : String(error)));
|
||||
throw new Error(
|
||||
'MSAL initialization failed: ' + (error instanceof Error ? error.message : String(error))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,7 +74,10 @@ async function getToken(): Promise<string> {
|
||||
accessToken = resp2.accessToken;
|
||||
}
|
||||
} catch (popupError) {
|
||||
throw new Error('Failed to login: ' + (popupError instanceof Error ? popupError.message : String(popupError)));
|
||||
throw new Error(
|
||||
'Failed to login: ' +
|
||||
(popupError instanceof Error ? popupError.message : String(popupError))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -106,7 +110,6 @@ const params = {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// Download file from OneDrive
|
||||
async function downloadOneDriveFile(fileInfo: any): Promise<Blob> {
|
||||
const accessToken = await getToken();
|
||||
|
Loading…
x
Reference in New Issue
Block a user