mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
add endpoint to HF
This commit is contained in:
@@ -201,6 +201,20 @@ export const getAvailableURLs = async (url: string, limit: number) => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get env variables
|
||||
* @param {string} url
|
||||
* @param {number} limit
|
||||
* @returns {string[]}
|
||||
*/
|
||||
export const getEnvironmentVariable = (name: string): string | undefined => {
|
||||
try {
|
||||
return typeof process !== 'undefined' ? process.env?.[name] : undefined
|
||||
} catch (e) {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom chain handler class
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user