langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.83k stars 4.25k forks source link

Prevent Degradation of API Integration Example Code #4421

Open italojohnny opened 3 weeks ago

italojohnny commented 3 weeks ago

Feature Request

Create integration tests for code examples demonstrating backend API integration. Screenshot 2024-11-06 at 07 46 03

Motivation

Currently, the API integration example code is versioned within the frontend codebase for convenience. However, this poses a problem as it may not always reflect the latest changes to the backend.

The proposal is to move this code to the backend and create integration tests to ensure it doesn’t degrade over time. From there, the frontend could request the example code from the backend to display it to users accurately.

Your Contribution

I believe this improvement isn't a priority, but I'd like to hear others' opinions. We could keep it on our radar for future implementation if it seems worthwhile.

edwinjosechittilappilly commented 2 weeks ago

This seems like a good idea. Also, we could do the same for all the API integration codes.