Skip to content

[Feature] 变量赋值能否多增加几种参数类型 #6139

@ggh-zyy

Description

@ggh-zyy

MaxKB Version

2.9.2

Please describe your needs or suggestions for improvements

变量赋值能否多增加几种参数类型,目前想要使用模型知识库引用变量传参时,使用会话变量,变量赋值来实现的话,需要手动写json,来进行赋值引用。能否在变量赋值里增加模型,知识库类型的参数,直接引用。目前需要这样赋值:{"model_id": "019e687d-ecee-75f2-b7aa-fd25be0816b8", "model_params_setting": {"temperature": 0.7, "max_tokens": 800, "extra_body": {"enable_throwing": false}}}
使用用户输入赋值的话,在每次对话时会有输入框,有的客户觉得不合适。用户端产生一个完全不必要的输入框,用户开启会话时会多出一步。很影响体验。

Image Image

Please describe the solution you suggest

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions