Comments (7)
I fixed the tooltip part, but changing type={'str'}
part will trigger some side effects within the handling code so I decided not to touch that until I'm certain about its behavior 😄
Will take a further investigation afterwards if needed :)
from langflow.
Hey!
We'll look into that ASAP.
@ibiscp do you know what could be causing this? I tested it here and it happened to me too.
I ran pip install langflow -U
and langflow
put the OpenAI node and the PAL-MATH node and I can't connect them to each other.
Maybe the output to OpenAI shouldn't be str.
from langflow.
In frontend/src/CustomNodes/GenericNode.js L84
id={data.type + "|" + data.id + "|" + data.node.base_classes.map((b) => ("|" + b))}
This line is problematic because it produces id in the form like this OpenAI|dndnode_26|BaseOpenAI,|BaseLLM,|BaseLanguageModel
You can see the trailing commas making isValidConnection to return false-negatives on valid connections.
So changing that line to
id={data.type + "|" + data.id + data.node.base_classes.join('|')}
or more likely to
id={[data.type, data.id, ...data.node.base_classes].join('|')}
will fix the problem in current implementation.
We also need to fix hard-coded "type:str" notation on ParameterComponent. I'd like to also find a way to actually use type parameter rather than just parse handle's id field when we're validating connections between nodes (Because current implementation is eager to be broken in future if we try to introduce way to manage custom components. Using reserved eparators for component ID will break the validation), but I'm not sure that's doable as this is my first time using reactflow library.
May I open PR from my fork to resolve this issue or is someone already working on it?
from langflow.
I'll debug that.
from langflow.
Thanks for the help! I'll test it out now.
Let's take the hard-coded "type:str" discussion to another issue or is it related to this?
from langflow.
Ok. I'll open a discussion based on your comment so we can maybe think of a better solution.
from langflow.
Fixed in version 0.0.44
from langflow.
Related Issues (20)
- Cannot run Langflow in a vanilla environment on OSX HOT 2
- Langflow global variables are "unset" on UI refresh HOT 1
- getting a column size error when using MySQL. HOT 1
- Wrong version HOT 5
- Agent tools / function calling UX improvement HOT 1
- ModuleNotFoundError: No module named 'langchain_experimental.agents' HOT 1
- updating prompt template severs existing connections in flow HOT 1
- Astra Connector needs a truncate operation
- Astra UI component: Astra URL component is not validated on entry
- On a component box, it is not clear that the red "X" will re-run the component unless you hover over or click HOT 1
- ERR by redis : RedisCache.upsert() got an unexpected keyword argument 'lock' HOT 1
- version HOT 3
- Delete Edge Not Working HOT 5
- Cannot Enter Store API Key on Self-Hosted LangFlow Instance HOT 1
- Get Openai model list from api
- OpenAI chat with no max new tokens
- I can't connect the new api on the langflow pre release HOT 5
- I can't connect api to the new langflow pre release this is the body HOT 3
- Error in API cURL option, JSON malformed and missing closing } on tweaks object HOT 1
- Lock type inconsistency between set_cache and upsert methods HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langflow.