Merge dev with custom_component_chroma
This commit is contained in:
commit
78c58c1f7e
5 changed files with 165 additions and 80 deletions
|
|
@ -1,33 +1,34 @@
|
||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
|
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
|
||||||
{
|
{
|
||||||
"name": "LangChain Demo Container",
|
"name": "Langflow Demo Container",
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
"image": "mcr.microsoft.com/devcontainers/python:3.10",
|
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/aws-cli:1": {},
|
"ghcr.io/devcontainers/features/aws-cli:1": {},
|
||||||
"ghcr.io/devcontainers/features/docker-in-docker": {},
|
"ghcr.io/devcontainers/features/docker-in-docker": {},
|
||||||
"ghcr.io/devcontainers/features/node": {}
|
"ghcr.io/devcontainers/features/node": {}
|
||||||
},
|
},
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"actboy168.tasks",
|
"actboy168.tasks",
|
||||||
"GitHub.copilot",
|
"GitHub.copilot",
|
||||||
"ms-python.python",
|
"ms-python.python",
|
||||||
"eamodio.gitlens",
|
"eamodio.gitlens",
|
||||||
"GitHub.vscode-pull-request-github"
|
"GitHub.vscode-pull-request-github",
|
||||||
]
|
"ms-azuretools.vscode-docker"
|
||||||
}
|
]
|
||||||
},
|
}
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
},
|
||||||
// "features": {},
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// "features": {},
|
||||||
// "forwardPorts": [],
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// "forwardPorts": [],
|
||||||
"postCreateCommand": "pipx install 'langflow>=0.0.33' && langflow --host 0.0.0.0"
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
// Configure tool-specific properties.
|
"postCreateCommand": "pipx install 'langflow>=0.0.33' && langflow --host 0.0.0.0"
|
||||||
// "customizations": {},
|
// Configure tool-specific properties.
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
// "customizations": {},
|
||||||
// "remoteUser": "root"
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
}
|
// "remoteUser": "root"
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,30 @@
|
||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
|
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
|
||||||
{
|
{
|
||||||
"name": "LangChain Dev Container",
|
"name": "Langflow Dev Container",
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
|
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
||||||
"features": {
|
|
||||||
"ghcr.io/devcontainers/features/node": {},
|
|
||||||
"ghcr.io/devcontainers-contrib/features/poetry": {}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
// "forwardPorts": [],
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/node": {},
|
||||||
|
"ghcr.io/devcontainers-contrib/features/poetry": {}
|
||||||
|
},
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
"postCreateCommand": "make setup_devcontainer",
|
// "forwardPorts": [],
|
||||||
|
|
||||||
"containerEnv": {
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"POETRY_VIRTUALENVS_IN_PROJECT": "true"
|
"postCreateCommand": "make setup_devcontainer",
|
||||||
},
|
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
"containerEnv": {
|
||||||
|
"POETRY_VIRTUALENVS_IN_PROJECT": "true"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {"extensions": [
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
"actboy168.tasks",
|
"actboy168.tasks",
|
||||||
"GitHub.copilot",
|
"GitHub.copilot",
|
||||||
"ms-python.python",
|
"ms-python.python",
|
||||||
|
|
@ -35,6 +36,6 @@
|
||||||
]}
|
]}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
// "remoteUser": "root"
|
// "remoteUser": "root"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
.github/workflows/pre-release.yml
vendored
4
.github/workflows/pre-release.yml
vendored
|
|
@ -14,9 +14,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
if_release:
|
if_release:
|
||||||
if: |
|
if: ${{ (github.event.pull_request.merged == true) && contains(github.event.pull_request.labels.*.name, 'pre-release') }}
|
||||||
${{ github.event.pull_request.merged == true }}
|
|
||||||
&& ${{ contains(github.event.pull_request.labels.*.name, 'pre-release') }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
||||||
48
.vscode/tasks.json
vendored
Normal file
48
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Init",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make init"
|
||||||
|
},
|
||||||
|
// make backend
|
||||||
|
{
|
||||||
|
"label": "Backend",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make backend"
|
||||||
|
},
|
||||||
|
// make frontend
|
||||||
|
{
|
||||||
|
"label": "Frontend",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make frontend"
|
||||||
|
},
|
||||||
|
// make test
|
||||||
|
{
|
||||||
|
"label": "Test",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make tests"
|
||||||
|
},
|
||||||
|
// make lint
|
||||||
|
{
|
||||||
|
"label": "Lint",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make lint"
|
||||||
|
},
|
||||||
|
// make format
|
||||||
|
{
|
||||||
|
"label": "Format",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make format"
|
||||||
|
},
|
||||||
|
// make install
|
||||||
|
{
|
||||||
|
"label": "Install",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make install_backend && make install_frontend"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -277,9 +277,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -326,9 +330,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -371,9 +379,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -404,9 +416,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = e;
|
].value = e;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -495,9 +511,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -531,9 +551,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -583,9 +607,14 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
|
||||||
index
|
newInputList!.find(
|
||||||
].data.node.template[
|
(obj) =>
|
||||||
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -638,9 +667,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
@ -693,9 +726,13 @@ export default function CodeTabsComponent({
|
||||||
setData((old) => {
|
setData((old) => {
|
||||||
let newInputList =
|
let newInputList =
|
||||||
cloneDeep(old);
|
cloneDeep(old);
|
||||||
newInputList![
|
newInputList!.find(
|
||||||
index
|
(obj) =>
|
||||||
].data.node.template[
|
obj.data.node
|
||||||
|
.template[
|
||||||
|
templateField
|
||||||
|
]
|
||||||
|
)!.data.node.template[
|
||||||
templateField
|
templateField
|
||||||
].value = target;
|
].value = target;
|
||||||
return newInputList;
|
return newInputList;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue