Kevin Hu
commited on
Commit
·
ff09b87
1
Parent(s):
957cf28
Refine variable display name. (#4397)
Browse files### What problem does this PR solve?
### Type of change
- [x] Documentation Update
agent/component/generate.py
CHANGED
@@ -111,9 +111,9 @@ class Generate(ComponentBase):
|
|
111 |
|
112 |
def get_input_elements(self):
|
113 |
if self._param.parameters:
|
114 |
-
return [{"key": "user", "name": "
|
115 |
|
116 |
-
return [{"key": "user", "name": "
|
117 |
|
118 |
def _run(self, history, **kwargs):
|
119 |
chat_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.CHAT, self._param.llm_id)
|
|
|
111 |
|
112 |
def get_input_elements(self):
|
113 |
if self._param.parameters:
|
114 |
+
return [{"key": "user", "name": "Input your question here:"}, *self._param.parameters]
|
115 |
|
116 |
+
return [{"key": "user", "name": "Input your question here:"}]
|
117 |
|
118 |
def _run(self, history, **kwargs):
|
119 |
chat_mdl = LLMBundle(self._canvas.get_tenant_id(), LLMType.CHAT, self._param.llm_id)
|