Kaynağa Gözat

诗词课朗读评价接口适配于仿写、背诵评价

liyanbo 1 ay önce
ebeveyn
işleme
ce698d96e6

+ 5 - 1
byzs-server/src/main/resources/application-localProd.yaml

@@ -48,7 +48,7 @@ spring:
       primary: master
       datasource:
         master:
-          url: jdbc:mysql://127.0.0.1:3306/byzs-bjdx-59-local?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&allowMultiQueries=true # MySQL Connector/J 8.X 连接的示例
+          url: jdbc:mysql://127.0.0.1:3306/byzs-bjdx-59?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&allowMultiQueries=true # MySQL Connector/J 8.X 连接的示例
 #          url: jdbc:mysql://127.0.0.1:3306/byzs-bjdx-59?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&allowMultiQueries=true # MySQL Connector/J 8.X 连接的示例
           #          url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro-all?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例
           #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例
@@ -209,6 +209,10 @@ debug: false
 
 # 博雅智算配置项,设置当前项目所有自定义的配置
 byzs:
+  ai:
+    vector-store:
+      simple:
+        namespace: byzs-ai-course-localProd
   captcha:
     enable: false # 本地环境,暂时关闭图片验证码,方便登录等接口的测试;
   security:

+ 2 - 2
byzs-server/src/main/resources/application.yaml

@@ -5,8 +5,8 @@ spring:
   profiles:
 #        active: local
 #    active: localProd
-#      active: prodDev
-      active: prod
+      active: prodDev
+#      active: prod
 
   main:
     allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。

+ 2 - 2
byzs-web/src/main/java/cn/iocoder/byzs/module/web/controller/admin/ai/WebAiController.java

@@ -328,7 +328,7 @@ public class WebAiController {
                                     .role(ResponsesConstants.MESSAGE_ROLE_SYSTEM)
                                     .content(MessageContent.builder()
                                             .addListItem(InputContentItemText.builder()
-                                                    .text("你是小学老师,接下来你要评价学生朗读诗词语句并打分,请用小学生的年级水平来评价,回复字数尽量控制在20字以内")
+                                                    .text("你是小学老师,接下来你要评价学生朗读/仿写/背诵)诗词语句并打分,请用小学生的年级水平来评价,回复字数尽量控制在20字以内")
                                                     .build())
                                             .build())
                                     .build())
@@ -336,7 +336,7 @@ public class WebAiController {
                                     .role(ResponsesConstants.MESSAGE_ROLE_USER)
                                     .content(MessageContent.builder()
                                             .addListItem(InputContentItemAudio.builder().audioUrl(base64Audio).build())
-                                            .addListItem(InputContentItemText.builder().text(visionThinkReqVO.getPrompt() == null ? "请评价这段朗读" : visionThinkReqVO.getPrompt()).build())
+                                            .addListItem(InputContentItemText.builder().text(visionThinkReqVO.getPrompt() == null ? "请评价" : visionThinkReqVO.getPrompt()).build())
                                             .build())
                                     .build())
                             .build())