-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/Credential
# Conflicts: # README.md # docker/.env.example # packages/components/nodes/documentloaders/Notion/NotionDB.ts # packages/components/nodes/memory/DynamoDb/DynamoDb.ts # packages/components/nodes/memory/MotorheadMemory/MotorheadMemory.ts # packages/components/nodes/memory/ZepMemory/ZepMemory.ts # packages/components/package.json # packages/components/src/utils.ts # packages/server/.env.example # packages/server/README.md # packages/server/marketplaces/chatflows/Conversational Retrieval QA Chain.json # packages/server/src/ChildProcess.ts # packages/server/src/DataSource.ts # packages/server/src/commands/start.ts # packages/server/src/index.ts # packages/server/src/utils/index.ts # packages/server/src/utils/logger.ts
- Loading branch information
Showing
107 changed files
with
4,322 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# npm install -g artillery@latest | ||
# artillery run artillery-load-test.yml | ||
# Refer https://www.artillery.io/docs | ||
|
||
config: | ||
target: http://128.128.128.128:3000 # replace with your url | ||
phases: | ||
- duration: 1 | ||
arrivalRate: 1 | ||
rampTo: 2 | ||
name: Warm up phase | ||
- duration: 1 | ||
arrivalRate: 2 | ||
rampTo: 3 | ||
name: Ramp up load | ||
- duration: 1 | ||
arrivalRate: 3 | ||
name: Sustained peak load | ||
scenarios: | ||
- flow: | ||
- loop: | ||
- post: | ||
url: '/api/v1/prediction/chatflow-id' # replace with your chatflowid | ||
json: | ||
question: 'hello' # replace with your question | ||
count: 1 # how many request each user make | ||
|
||
# User __ | ||
# 3 / | ||
# 2 / | ||
# 1 _/ | ||
# 1 2 3 | ||
# Seconds | ||
# Total Users = 2 + 3 + 3 = 8 | ||
# Each making 1 HTTP call | ||
# Over a duration of 3 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
PORT=3000 | ||
PASSPHRASE=MYPASSPHRASE # Passphrase used to create encryption key | ||
DATABASE_PATH=/root/.flowise | ||
APIKEY_PATH=/root/.flowise | ||
SECRETKEY_PATH=/root/.flowise | ||
LOG_PATH=/root/.flowise/logs | ||
|
||
# DATABASE_TYPE=postgres | ||
# DATABASE_PORT="" | ||
# DATABASE_HOST="" | ||
# DATABASE_NAME="flowise" | ||
# DATABASE_USER="" | ||
# DATABASE_PASSWORD="" | ||
# OVERRIDE_DATABASE=true | ||
|
||
# FLOWISE_USERNAME=user | ||
# FLOWISE_PASSWORD=1234 | ||
# DEBUG=true | ||
# DATABASE_PATH=/your/database/path/.flowise | ||
# APIKEY_PATH=/your/api/key/path | ||
# SECRETKEY_PATH=/your/secret/key/path | ||
# LOG_PATH=/your/log/path | ||
# LOG_LEVEL=debug (error | warn | info | verbose | debug) | ||
# EXECUTION_MODE=main (child | main) | ||
# TOOL_FUNCTION_BUILTIN_DEP=crypto,fs | ||
# TOOL_FUNCTION_EXTERNAL_DEP=moment,lodash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class AirtableApi implements INodeCredential { | ||
label: string | ||
name: string | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Airtable API' | ||
this.name = 'airtableApi' | ||
this.description = | ||
'Refer to <a target="_blank" href="https://support.airtable.com/docs/creating-and-using-api-keys-and-access-tokens">official guide</a> on how to get accessToken on Airtable' | ||
this.inputs = [ | ||
{ | ||
label: 'Access Token', | ||
name: 'accessToken', | ||
type: 'password', | ||
placeholder: '<AIRTABLE_ACCESS_TOKEN>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: AirtableApi } |
22 changes: 22 additions & 0 deletions
22
packages/components/credentials/BraveSearchApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class BraveSearchApi implements INodeCredential { | ||
label: string | ||
name: string | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Brave Search API' | ||
this.name = 'braveSearchApi' | ||
this.inputs = [ | ||
{ | ||
label: 'BraveSearch Api Key', | ||
name: 'braveApiKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: BraveSearchApi } |
21 changes: 21 additions & 0 deletions
21
packages/components/credentials/ReplicateApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class ReplicateApi implements INodeCredential { | ||
label: string | ||
name: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Replicate API' | ||
this.name = 'replicateApi' | ||
this.inputs = [ | ||
{ | ||
label: 'Replicate Api Key', | ||
name: 'replicateApiKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: ReplicateApi } |
29 changes: 29 additions & 0 deletions
29
packages/components/credentials/SingleStoreApi.credential.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class SingleStoreApi implements INodeCredential { | ||
label: string | ||
name: string | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'SingleStore API' | ||
this.name = 'singleStoreApi' | ||
this.inputs = [ | ||
{ | ||
label: 'User', | ||
name: 'user', | ||
type: 'string', | ||
placeholder: '<SINGLESTORE_USERNAME>' | ||
}, | ||
{ | ||
label: 'Password', | ||
name: 'password', | ||
type: 'password', | ||
placeholder: '<SINGLESTORE_PASSWORD>' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: SingleStoreApi } |
Oops, something went wrong.