From 3effba2dbdee5539d75c463f1ec0f7c3db3caec7 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 14 Jul 2023 09:16:15 -0300 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9B=20fix(API/index.ts):=20update?= =?UTF-8?q?=20examples=20API=20URL=20to=20use=20the=20'main'=20branch=20in?= =?UTF-8?q?stead=20of=20'fix=5Fexamples'=20branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/controllers/API/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 6970ac8bf..7668fea0a 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -76,7 +76,7 @@ export async function postValidatePrompt( */ export async function getExamples(): Promise { const url = - "https://api.github.com/repos/logspace-ai/langflow_examples/contents/examples?ref=fix_examples"; + "https://api.github.com/repos/logspace-ai/langflow_examples/contents/examples?ref=main"; const response = await axios.get(url); const jsonFiles = response.data.filter((file: any) => { From 88511f1016c1d66cf217f02881b4fe1aae604042 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 14 Jul 2023 09:17:09 -0300 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=94=A7=20fix(chatMessage):=20adjust?= =?UTF-8?q?=20className=20to=20fix=20layout=20issue=20in=20ChatMessage=20c?= =?UTF-8?q?omponent=20=F0=9F=94=A7=20fix(genericModal):=20reformat=20impor?= =?UTF-8?q?t=20statements=20and=20fix=20indentation=20in=20GenericModal=20?= =?UTF-8?q?component=20=F0=9F=94=A7=20fix(genericModal):=20adjust=20classN?= =?UTF-8?q?ame=20to=20fix=20layout=20issue=20in=20GenericModal=20component?= =?UTF-8?q?=20=F0=9F=94=A7=20fix(genericModal):=20fix=20indentation=20and?= =?UTF-8?q?=20add=20missing=20closing=20tag=20in=20GenericModal=20componen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modals/formModal/chatMessage/index.tsx | 2 +- .../src/modals/genericModal/index.tsx | 22 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/frontend/src/modals/formModal/chatMessage/index.tsx b/src/frontend/src/modals/formModal/chatMessage/index.tsx index 9affce87e..953aed530 100644 --- a/src/frontend/src/modals/formModal/chatMessage/index.tsx +++ b/src/frontend/src/modals/formModal/chatMessage/index.tsx @@ -81,7 +81,7 @@ export default function ChatMessage({ remarkPlugins={[remarkGfm, remarkMath]} rehypePlugins={[rehypeMathjax]} className="markdown prose inline-block break-words text-primary - dark:prose-invert sm:max-w-[30vw] lg:max-w-[40vw] sm:w-[30vw] lg:w-[40vw]" + dark:prose-invert sm:w-[30vw] sm:max-w-[30vw] lg:w-[40vw] lg:max-w-[40vw]" components={{ code: ({ node, diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx index b76a71c4b..fa26af1be 100644 --- a/src/frontend/src/modals/genericModal/index.tsx +++ b/src/frontend/src/modals/genericModal/index.tsx @@ -6,7 +6,11 @@ import { Badge } from "../../components/ui/badge"; import { Button } from "../../components/ui/button"; import { DialogTitle } from "../../components/ui/dialog"; import { Textarea } from "../../components/ui/textarea"; -import { MAX_WORDS_HIGHLIGHT, PROMPT_DIALOG_SUBTITLE, TEXT_DIALOG_SUBTITLE } from "../../constants"; +import { + MAX_WORDS_HIGHLIGHT, + PROMPT_DIALOG_SUBTITLE, + TEXT_DIALOG_SUBTITLE, +} from "../../constants"; import { alertContext } from "../../contexts/alertContext"; import { darkContext } from "../../contexts/darkContext"; import { PopUpContext } from "../../contexts/popUpContext"; @@ -120,15 +124,16 @@ export default function GenericModal({ ); }; - function getClassByNumberLength(){ + function getClassByNumberLength() { let sumOfCaracteres: number = 0; - wordsHighlight.forEach(element => { - sumOfCaracteres = sumOfCaracteres + element.replace(/[{}]/g, "").length + wordsHighlight.forEach((element) => { + sumOfCaracteres = sumOfCaracteres + element.replace(/[{}]/g, "").length; }); - return sumOfCaracteres > MAX_WORDS_HIGHLIGHT ? "code-highlight" : "code-nohighlight" + return sumOfCaracteres > MAX_WORDS_HIGHLIGHT + ? "code-highlight" + : "code-nohighlight"; } - function validatePrompt(closeModal: boolean) { postValidatePrompt(field_name, inputValue, nodeClass) .then((apiReturn) => { @@ -234,7 +239,10 @@ export default function GenericModal({
{type === TypeModal.PROMPT && (
-
+
From 7048196682019324e2eb19653bda9b88c6682a47 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 14 Jul 2023 17:53:08 -0300 Subject: [PATCH 3/4] Fixed tweaks appearing as list --- src/frontend/src/constants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/constants.tsx b/src/frontend/src/constants.tsx index 9c167c271..4f8045c77 100644 --- a/src/frontend/src/constants.tsx +++ b/src/frontend/src/constants.tsx @@ -198,7 +198,7 @@ function buildTweakObject(tweak) { }); }); - const tweakString = JSON.stringify(tweak, null, 2); + const tweakString = JSON.stringify(tweak[0], null, 2); return tweakString; } From 0450c4c8cc5fe04d6830c32364c83997f06511af Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 14 Jul 2023 17:58:40 -0300 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=94=96=20chore(pyproject.toml):=20bum?= =?UTF-8?q?p=20langchain=20version=20from=200.0.232=20to=200.0.233=20?= =?UTF-8?q?=F0=9F=94=96=20chore(pyproject.toml):=20bump=20package=20versio?= =?UTF-8?q?n=20from=200.3.0=20to=200.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poetry.lock | 31 ++++++++++++++++--------------- pyproject.toml | 4 ++-- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/poetry.lock b/poetry.lock index be59ac3f7..78e5d6c96 100644 --- a/poetry.lock +++ b/poetry.lock @@ -767,21 +767,22 @@ sqlalchemy = ["sqlalchemy (>1.3.21,<2.0)"] [[package]] name = "cohere" -version = "4.13.0" +version = "4.13.1" description = "" category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ - {file = "cohere-4.13.0-py3-none-any.whl", hash = "sha256:ac8faf352c9e8794dfd05002ce52b7d4f6da8f47a20172c8640ed58e8dfd3f10"}, - {file = "cohere-4.13.0.tar.gz", hash = "sha256:7c8e65aa4fc50fe6a9e8fe19d64e18b77d4250ec70845d480c68644d5a903253"}, + {file = "cohere-4.13.1-py3-none-any.whl", hash = "sha256:f6fd2c9fcec6b6d45d669287bc45e7268f92cbabb2a2df8d5df3b5725b80be0b"}, + {file = "cohere-4.13.1.tar.gz", hash = "sha256:53c380966fddd213d5ce701bf1a5fe7a9fb62dc2e37ef23b3e8d294bf82b5ba0"}, ] [package.dependencies] aiohttp = ">=3.0,<4.0" backoff = ">=2.0,<3.0" importlib_metadata = ">=6.0,<7.0" -requests = ">=2.0,<3.0" +requests = ">=2.25.0,<3.0.0" +urllib3 = ">=1.26,<3" [[package]] name = "colorama" @@ -2928,14 +2929,14 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", [[package]] name = "langchain" -version = "0.0.232" +version = "0.0.233" description = "Building applications with LLMs through composability" category = "main" optional = false python-versions = ">=3.8.1,<4.0" files = [ - {file = "langchain-0.0.232-py3-none-any.whl", hash = "sha256:33d8d498115f9af8d1851ba7fa326348848fabd314497629ac55b3b9b61e3ec1"}, - {file = "langchain-0.0.232.tar.gz", hash = "sha256:afcd5ed45adf8ec1434151f881ac9ff73d958fe3ea8d7725d7b6b603feb48c8d"}, + {file = "langchain-0.0.233-py3-none-any.whl", hash = "sha256:615f57abdf14515a4760f54b8cdc176edff38e657b674b7182084396d6530699"}, + {file = "langchain-0.0.233.tar.gz", hash = "sha256:e139f4939fa7eb4822fe69d3732718d19428ffcc3bd39872342c18037dbfbd8f"}, ] [package.dependencies] @@ -3031,13 +3032,13 @@ test = ["coverage", "pytest", "pytest-cov"] [[package]] name = "llama-cpp-python" -version = "0.1.70" +version = "0.1.71" description = "A Python wrapper for llama.cpp" category = "main" optional = false python-versions = ">=3.7" files = [ - {file = "llama_cpp_python-0.1.70.tar.gz", hash = "sha256:616ea7ad87417eba9c76d6ffe060b855af39ab7e795032dcf19fc49a7e73806b"}, + {file = "llama_cpp_python-0.1.71.tar.gz", hash = "sha256:598b61862ab4e18e0acce5902ae8a9c1ece1554d4b87bf8bb7ad6a0b1660f3cd"}, ] [package.dependencies] @@ -3046,7 +3047,7 @@ numpy = ">=1.20.0" typing-extensions = ">=4.5.0" [package.extras] -server = ["fastapi (>=0.100.0)", "pydantic-settings (>=2.0.1)", "sse-starlette (>=1.6.1)", "uvicorn (>=0.22.1)"] +server = ["fastapi (>=0.100.0)", "pydantic-settings (>=2.0.1)", "sse-starlette (>=1.6.1)", "uvicorn (>=0.22.0)"] [[package]] name = "loguru" @@ -7750,19 +7751,19 @@ multidict = ">=4.0" [[package]] name = "zipp" -version = "3.16.1" +version = "3.16.2" description = "Backport of pathlib-compatible object wrapper for zip files" category = "main" optional = false python-versions = ">=3.8" files = [ - {file = "zipp-3.16.1-py3-none-any.whl", hash = "sha256:0b37c326d826d5ca35f2b9685cd750292740774ef16190008b00a0227c256fe0"}, - {file = "zipp-3.16.1.tar.gz", hash = "sha256:857b158da2cbf427b376da1c24fd11faecbac5a4ac7523c3607f8a01f94c2ec0"}, + {file = "zipp-3.16.2-py3-none-any.whl", hash = "sha256:679e51dd4403591b2d6838a48de3d283f3d188412a9782faadf845f298736ba0"}, + {file = "zipp-3.16.2.tar.gz", hash = "sha256:ebc15946aa78bd63458992fc81ec3b6f7b1e92d51c35e6de1c3804e73b799147"}, ] [package.extras] docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-ruff"] +testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy (>=0.9.1)", "pytest-ruff"] [[package]] name = "zstandard" @@ -7829,4 +7830,4 @@ deploy = ["langchain-serve"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.11" -content-hash = "c3af9ea35a1786197ab1325814e4e45755aa46dae0fd363243ab807081f8d45c" +content-hash = "752424172da0f4b36648ff928e56895ad0f516dcc9cb69d788c8f0487f6e9db0" diff --git a/pyproject.toml b/pyproject.toml index 436e65dc8..08e6156d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langflow" -version = "0.3.0" +version = "0.3.1" description = "A Python package with a built-in web application" authors = ["Logspace "] maintainers = [ @@ -30,7 +30,7 @@ google-search-results = "^2.4.1" google-api-python-client = "^2.79.0" typer = "^0.9.0" gunicorn = "^20.1.0" -langchain = "^0.0.232" +langchain = "^0.0.233" openai = "^0.27.8" pandas = "^2.0.0" chromadb = "^0.3.21"