Kaynağa Gözat

Refine variable display name. (#4397)

### What problem does this PR solve?


### Type of change

- [x] Documentation Update
tags/v0.16.0
Kevin Hu 9 ay önce
ebeveyn
işleme
de822a108f
No account linked to committer's email address
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      agent/component/generate.py

+ 2
- 2
agent/component/generate.py Dosyayı Görüntüle

@@ -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…
İptal
Kaydet