Skip to content

Design and implement the function encapsulation mechanism  #240

Open

Description

@jianzs

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
  • This feature might incur a breaking change

Activity

  1. added
    💡feature
    on Jun 6, 2024
  2. added
    help wanted
    on Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted💡feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions