Files
clue/ServerCommands/AI/测试回复JSON.json

237 lines
9.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Name": "测试回复JSON",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": [
"FGC_LoginUser"
]
}
]
}
},
"Parameters": [
{
"Name": "项目ID",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前用户",
"ParameterValue": "%CurrentUser%",
"ID": "22d5b9ac2c1d44b7909b092cf426e1ef"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "项目",
"TableValue": {
"TableName": "项目表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "d2c29a63-a2e8-413c-b1d0-56474a78b2b2",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目名称",
"GUID": "859fc8d2-4cf6-456d-8f69-b1639d6fe7ae"
},
"ColumnName": "项目名称"
},
{
"GUID": "8163ca70-051a-4cb2-ae0f-bedd0b91de5c",
"BindingInfo": {
"TableName": "项目表",
"ColumnName": "项目简介",
"GUID": "a0db1a7b-3b83-48d8-a970-06e23169a0c9"
},
"ColumnName": "项目简介"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目表",
"ColumnName": "ID",
"GUID": "4ac54688-e12a-40d2-8238-c4757d8dcc24"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
"TopCount": "1"
},
"ID": "87d4b62fc3e246d2a0deb149c6f42dff"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目"
}
},
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目.项目名称"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目.项目简介"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=LEN(项目.项目简介)"
}
},
"value": "12",
"compareType": 5
}
]
},
"CommandList": [
{
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "role",
"Value": "user"
},
{
"Name": "content",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"我的项目名称为:\"&项目.项目名称&\",项目简介:\"&项目.项目简介&\"。请你发挥创意,帮我生成一段英文描述词,回复中请不要携带任何引导语、说明语,只能返回你生成的图片描述。\""
}
}
],
"OutParamaterName": "user"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=user"
},
"Operation": 15,
"OutParamaterName": "消息列表"
},
{
"$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://openai.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"ORGANIZATION": "",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=消息列表"
},
"Parameter": {
"Model": 47,
"Temperature": 1.0,
"TopP": 1.0,
"MaxTokens": 100,
"SystemContent": "我需要为我的项目生成一张封面图片需要你帮我生成Prompt英文关键词用来描述这张图片以便AI能够准确生成你可以根据我提供的项目信息来生成合适的图片描述以职业、商务、工作主题为主风格为真实摄影场景可以是办公楼、办公室、工作场景等灯光明亮自然可以抽象一些而且不要包含明显人物。需要注意的是你的回复应该只包含我需要的描述不需要任何其他引导性、说明性文字。",
"Response_format": "text"
},
"Tools": [],
"ResultTo": "result",
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.content"
}
}
]
}
],
"ID": "7a09a53a-2f05-4624-bea8-e637b45a513a"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目资料不全,请在项目简介中尽量详细说明项目背景、使用场景、使用人群等。"
}
],
"ID": "58d2354e-1e9d-4ea0-ae84-d086849f234e"
}
]
}
],
"ID": "90a9b15d-09fd-4a98-bc9a-5b0c947751f0"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目不存在"
}
],
"ID": "1d59fcbf-7880-457e-ba70-c60f36a57621"
}
]
}
]
}