-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: API JS generated code #3461
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 20 Aug 24 23:39 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* update js code * fix langflowid * fix code change
* update js code * fix langflowid * fix code change
JS API generated code currently cannot support user defined parameters, and lacks "input_type, output_type" arguments as Python and Curl do.
Besides, the output code is too redundant. It will output too many repeated errors. It also lacks the detailed error message like Python code.
In this PR I added the user defined parameters and missing arguments, also simplify the output.
To run the JS code:
node <YOUR_FILE_NAME>.js [user_message] [input_type] [output_type] [stream]