Refine variable display name. (#4397)

### What problem does this PR solve?


### Type of change

- [x] Documentation Update
This commit is contained in:
Kevin Hu 2025-01-07 18:02:33 +08:00 committed by GitHub
parent 2e40c2a6f6
commit de822a108f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,9 +111,9 @@ class Generate(ComponentBase):
def get_input_elements(self):
if self._param.parameters:
return [{"key": "user", "name": "User"}, *self._param.parameters]
return [{"key": "user", "name": "Input your question here:"}, *self._param.parameters]
return [{"key": "user", "name": "User"}]
return [{"key": "user", "name": "Input your question here:"}]
def _run(self, history, **kwargs):
chat_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.CHAT, self._param.llm_id)