mini板增加讯飞语音

This commit is contained in:
Irene-Maxine
2025-10-18 13:54:27 +08:00
parent be13c0f411
commit d105bf68ec
10 changed files with 303 additions and 29 deletions

View File

@@ -741,4 +741,32 @@ export const tuple_input = {
.appendField(')');
this.setOutput(true);
}
};
export const tuple_create_llm_params= {
init: function () {
this.setColour(TUPLE_HUE);
this.appendValueInput("params")
.appendField('(')
.appendField(Blockly.Msg.MIXLY_NAME_OF_PARAMS)
this.appendDummyInput()
.appendField(',')
.appendField(Blockly.Msg.MIXLY_TYPE)
.appendField(new Blockly.FieldDropdown([
[Blockly.Msg.MIXLY_TYPE_BOOLEAN,"boolean"],
[Blockly.Msg.MIXLY_TYPE_STRING,"string"],
[Blockly.Msg.MIXLY_TYPE_NUMBER,"number"],
[Blockly.Msg.MIXLY_TYPE_INTEGER,"integer"],
[Blockly.Msg.MIXLY_TYPE_NULL,"null"]
]),"type")
this.appendValueInput("des")
.appendField(',')
.appendField(Blockly.Msg.MIXLY_DESCRIPTION)
this.appendDummyInput()
.appendField(')');
this.setOutput(true);
this.setInputsInline(true);
this.setTooltip(Blockly.Msg.MIXPY_TOOLTIP_TUPLE_CREATE_WITH_TEXT);
}
};