devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
326 stars 36 forks source link

Feature Request: Support 'enable' parameter for model visibility control in devchat API #356

Closed yangbobo2021 closed 2 months ago

yangbobo2021 commented 2 months ago

Currently, the devchat API allows controlling the visibility of parameters in the supported model list through environment variables, with support only for a 'disable' parameter. For private deployments, an 'enable' parameter would be considerably more convenient.

In the context of private deployments, the requirement often is to expose a limited list of models while keeping the majority disabled. Thus, adopting an 'enable' approach for parameter visibility would greatly enhance usability and control over what is exposed.

Suggestion: Introduce an 'enable' parameter that functions opposite to the current 'disable' parameter. This change would allow administrators of private deployments to specify exactly which models should be visible, simplifying the configuration process when only a select few models are intended for exposure.