pluto
pluto copied to clipboard
Design and implement the function encapsulation mechanism
Describe the feature
To support users in encapsulating the process of reusing infrastructure configuration through functions.
Use Case
I am creating a Chatbot based on LLMs (Large Language Models), using Pluto to build the application's backend, which supports multiple LLMs. Each LLM has two interfaces: 1) /{model}/info to get the basic information of the current LLM, and 2) /{model}/invoke to call the LLM. To reuse the process of configuring routes, it is necessary to implement a function to configure routes for a single LLM, and call this function multiple times to configure routes for each LLM.
Proposed Solution
No response
Other Information
Details are available at https://github.com/pluto-lang/pluto/blob/main/docs/documentation/design/function-encapsulation.en.mdx
Acknowledgements
- [ ] I may be able to implement this feature request
- [X] This feature might incur a breaking change