From a22bb0a7a679109561e1847eb2ba5c2cffd53433 Mon Sep 17 00:00:00 2001 From: qitan Date: Wed, 29 May 2024 10:54:34 +0800 Subject: [PATCH] fix technical solution and iact3 action --- .github/workflows/iact3-test.yml | 10 +-- ...e-model-based-on-ChatGLM-and-LangChain.yml | 63 +------------------ ...ogue-model-based-on-Qwen-and-LangChain.yml | 61 ------------------ 3 files changed, 7 insertions(+), 127 deletions(-) diff --git a/.github/workflows/iact3-test.yml b/.github/workflows/iact3-test.yml index dc8adfa1..db76a05d 100644 --- a/.github/workflows/iact3-test.yml +++ b/.github/workflows/iact3-test.yml @@ -59,19 +59,21 @@ jobs: if: ${{ steps.white-list.outputs.type == 'validate' }} - name: DingTalk Robot + env: + TITLE: ${{ github.event.pull_request.title }} if: always() continue-on-error: true run: | if [[ "${{ steps.white-list.outputs.type }}" != "test" ]]; then if [[ "${{ steps.validate-templates.outputs.status }}" = "success" ]]; then - curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-validate CI pass. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} + curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-validate CI pass. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:"$TITLE" ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} else - curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-validate CI failed. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} + curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-validate CI failed. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:"$TITLE" ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} fi else if [[ "${{ steps.test-templates.outputs.status }}" = "success" ]]; then - curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-test CI pass. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} + curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-test CI pass. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:"$TITLE" ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} else - curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-test CI failed. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} + curl -H 'Content-Type: application/json;charset=utf-8' -d '{"msgtype": "text","text": {"content": "Iact3-test CI failed. ${{ github.event.pull_request.user.login }} PR#${{ github.event.pull_request.number }}:"$TITLE" ${{ github.event.pull_request.html_url }} "}}' ${{ secrets.DINGDING_WEBHOOK }} fi fi \ No newline at end of file diff --git a/documents/solution/ai/build-a-dialogue-model-based-on-ChatGLM-and-LangChain.yml b/documents/solution/ai/build-a-dialogue-model-based-on-ChatGLM-and-LangChain.yml index 6d102817..8c884532 100644 --- a/documents/solution/ai/build-a-dialogue-model-based-on-ChatGLM-and-LangChain.yml +++ b/documents/solution/ai/build-a-dialogue-model-based-on-ChatGLM-and-LangChain.yml @@ -88,31 +88,6 @@ Resources: Ref: Vpc VSwitchId: Ref: VSwitch - AliyunFCServerlessDevsRole: - Type: ALIYUN::RAM::Role - Properties: - RoleName: AliyunFCServerlessDevsRole - Description: 应用中心需要您的角色中包含应用所需策略,推荐创建并使用系统默认角色 AliyunFCServerlessDevsRole。 - AssumeRolePolicyDocument: - Version: '1' - Statement: - - Action: sts:AssumeRole - Effect: Allow - Principal: - Service: - - fc.aliyuncs.com - MaxSessionDuration: 3600 - IgnoreExisting: true - DeletionForce: true - PolicyAttachments: - System: - - AliyunNASFullAccess - - AliyunFCFullAccess - - AliyunFCServerlessDevsRolePolicy - - AliyunOSSReadOnlyAccess - - AliyunECSReadOnlyAccess - - AliyunVPCReadOnlyAccess - - AliyunLogReadOnlyAccess NasAccessGroup: Type: ALIYUN::NAS::AccessGroup Properties: @@ -139,33 +114,6 @@ Resources: SourceCidrIp: 0.0.0.0/0 AccessGroupName: Ref: NasAccessGroup - FCApplication: - Type: ALIYUN::FC::Application - Properties: - Name: - Fn::Sub: fc-nas-filemgr-${ALIYUN::StackId} - RoleARN: - Fn::GetAtt: - - AliyunFCServerlessDevsRole - - Arn - Parameters: - serviceName: - Fn::Sub: fc-nas-filemgr-${ALIYUN::StackId} - functionName: filemgr - region: - Ref: ALIYUN::Region - vpcId: - Ref: Vpc - vswitchId: - Ref: VSwitch - securityGroupId: - Ref: SecurityGroup - mountPointsServerAddr: - Fn::GetAtt: - - NasMountTarget - - MountTargetDomain - Template: fc-nas-filemgr - AutoDeploy: true Workspace: Type: ALIYUN::PAI::Workspace DependsOn: @@ -222,15 +170,6 @@ Metadata: ParameterGroups: - Parameters: - ZoneId - Label: - default: - en: Zone - zh-cn: 可用区 - - Parameters: - PAIEASInstanceType - Label: - default: - en: PAI-EAS - zh-cn: PAI服务 TemplateTags: - - acs:technical-solution:AI:ChatGLM和LangChain搭建对话模型-tech_solu_31 \ No newline at end of file + - acs:technical-solution:AI:ChatGLM和LangChain搭建对话模型-tech_solu_31 diff --git a/documents/solution/ai/build-a-dialogue-model-based-on-Qwen-and-LangChain.yml b/documents/solution/ai/build-a-dialogue-model-based-on-Qwen-and-LangChain.yml index 65cfa351..26fbadc4 100644 --- a/documents/solution/ai/build-a-dialogue-model-based-on-Qwen-and-LangChain.yml +++ b/documents/solution/ai/build-a-dialogue-model-based-on-Qwen-and-LangChain.yml @@ -88,31 +88,6 @@ Resources: Ref: Vpc VSwitchId: Ref: VSwitch - AliyunFCServerlessDevsRole: - Type: ALIYUN::RAM::Role - Properties: - RoleName: AliyunFCServerlessDevsRole - Description: 应用中心需要您的角色中包含应用所需策略,推荐创建并使用系统默认角色 AliyunFCServerlessDevsRole。 - AssumeRolePolicyDocument: - Version: '1' - Statement: - - Action: sts:AssumeRole - Effect: Allow - Principal: - Service: - - fc.aliyuncs.com - MaxSessionDuration: 3600 - IgnoreExisting: true - DeletionForce: true - PolicyAttachments: - System: - - AliyunNASFullAccess - - AliyunFCFullAccess - - AliyunFCServerlessDevsRolePolicy - - AliyunOSSReadOnlyAccess - - AliyunECSReadOnlyAccess - - AliyunVPCReadOnlyAccess - - AliyunLogReadOnlyAccess NasAccessGroup: Type: ALIYUN::NAS::AccessGroup Properties: @@ -139,33 +114,6 @@ Resources: SourceCidrIp: 0.0.0.0/0 AccessGroupName: Ref: NasAccessGroup - FCApplication: - Type: ALIYUN::FC::Application - Properties: - Name: - Fn::Sub: fc-nas-filemgr-${ALIYUN::StackId} - RoleARN: - Fn::GetAtt: - - AliyunFCServerlessDevsRole - - Arn - Parameters: - serviceName: - Fn::Sub: fc-nas-filemgr-${ALIYUN::StackId} - functionName: filemgr - region: - Ref: ALIYUN::Region - vpcId: - Ref: Vpc - vswitchId: - Ref: VSwitch - securityGroupId: - Ref: SecurityGroup - mountPointsServerAddr: - Fn::GetAtt: - - NasMountTarget - - MountTargetDomain - Template: fc-nas-filemgr - AutoDeploy: true Workspace: Type: ALIYUN::PAI::Workspace DependsOn: @@ -215,15 +163,6 @@ Metadata: ParameterGroups: - Parameters: - ZoneId - Label: - default: - en: Zone - zh-cn: 可用区 - - Parameters: - PAIEASInstanceType - Label: - default: - en: PAI-EAS - zh-cn: PAI服务 TemplateTags: - acs:technical-solution:AI:通义千问和LangChain搭建对话模型 \ No newline at end of file