{
"user_id": "a",
"instruction": "请用 Python 语言编写一个函数,计算五个随机数的乘积。",
"model_config": {
"provider": "langgenius/openai_api_compatible/openai_api_compatible",
"name": "dashscope/qwen-max",
"temperature": 0.5
},
"no_variable": true,
"code_language": "python"
}
curl --location --request POST 'http://172.29.50.10:2333/zhixin_agent/workflows/rule-code-generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": "a",
"instruction": "请用 Python 语言编写一个函数,计算五个随机数的乘积。",
"model_config": {
"provider": "langgenius/openai_api_compatible/openai_api_compatible",
"name": "dashscope/qwen-max",
"temperature": 0.5
},
"no_variable": true,
"code_language": "python"
}'
{
"code": "string",
"language": "string",
"error": "string"
}