forked from FlowiseAI/Flowise
-
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 pull request #9 from Hostcomm/update-2024-05-15
Update 2024 05 15
- Loading branch information
Showing
189 changed files
with
11,452 additions
and
962 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
node_version: | ||
description: 'Node.js version to build this image with.' | ||
type: choice | ||
required: true | ||
default: '20' | ||
options: | ||
- '20' | ||
tag_version: | ||
description: 'Tag version of the image to be pushed.' | ||
type: string | ||
required: true | ||
default: 'latest' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.1 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3.0.0 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5.3.0 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
build-args: | | ||
NODE_VERSION=${{github.event.inputs.node_version}} | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: flowiseai/flowise:${{github.event.inputs.tag_version}} |
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
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ RUN npm install -g flowise | |
|
||
WORKDIR /data | ||
|
||
CMD "flowise" | ||
CMD "flowise" |
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
39 changes: 39 additions & 0 deletions
39
packages/components/credentials/CouchbaseApi.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,39 @@ | ||
/* | ||
* Temporary disabled due to the incompatibility with the docker node-alpine: | ||
* https://github.com/FlowiseAI/Flowise/pull/2303 | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
class CouchbaseApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
constructor() { | ||
this.label = 'Couchbase API' | ||
this.name = 'couchbaseApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'Couchbase Connection String', | ||
name: 'connectionString', | ||
type: 'string' | ||
}, | ||
{ | ||
label: 'Couchbase Username', | ||
name: 'username', | ||
type: 'string' | ||
}, | ||
{ | ||
label: 'Couchbase Password', | ||
name: 'password', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
module.exports = { credClass: CouchbaseApi } | ||
*/ |
23 changes: 23 additions & 0 deletions
23
packages/components/credentials/TogetherAIApi.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,23 @@ | ||
import { INodeParams, INodeCredential } from '../src/Interface' | ||
|
||
class TogetherAIApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'TogetherAI API' | ||
this.name = 'togetherAIApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'TogetherAI Api Key', | ||
name: 'togetherAIApiKey', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: TogetherAIApi } |
29 changes: 29 additions & 0 deletions
29
packages/components/credentials/UpstashVectorApi.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 UpstashVectorApi implements INodeCredential { | ||
label: string | ||
name: string | ||
version: number | ||
description: string | ||
inputs: INodeParams[] | ||
|
||
constructor() { | ||
this.label = 'Upstash Vector API' | ||
this.name = 'upstashVectorApi' | ||
this.version = 1.0 | ||
this.inputs = [ | ||
{ | ||
label: 'Upstash Vector REST URL', | ||
name: 'UPSTASH_VECTOR_REST_URL', | ||
type: 'string' | ||
}, | ||
{ | ||
label: 'Upstash Vector REST Token', | ||
name: 'UPSTASH_VECTOR_REST_TOKEN', | ||
type: 'password' | ||
} | ||
] | ||
} | ||
} | ||
|
||
module.exports = { credClass: UpstashVectorApi } |
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
Oops, something went wrong.