Refine variable display name. (#4397)
### What problem does this PR solve? ### Type of change - [x] Documentation Update
This commit is contained in:
parent
2e40c2a6f6
commit
de822a108f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user