This commit is contained in:
2025-11-22 16:50:42 +08:00
parent 809f257bc7
commit 042531c68c
6 changed files with 9 additions and 10 deletions

View File

@@ -4,8 +4,8 @@ import { getAccessToken } from '@/utils/auth'
// 使用公共配置
import { API_BASE } from '@gold/config/api'
// C 端使用 APP_AI,如果不存在则回退到 ADMIN_AI
const SERVER_BASE_AI = API_BASE.APP_AI || API_BASE.ADMIN_AI
// C 端使用 APP_AI
const SERVER_BASE_AI = API_BASE.APP_AI

View File

@@ -1,9 +1,9 @@
import http from '@/api/http'
import { API_BASE } from '@gold/config/api'
// C 端使用 APP_AI,如果不存在则回退到 ADMIN_AI
// C 端使用 APP_AI
// 后端路径是 /app-api/ai/user-prompt参考 chat API 的实现
const SERVER_BASE_AI = API_BASE.APP_AI || API_BASE.ADMIN_AI
const SERVER_BASE_AI = API_BASE.APP_AI
/**
* 用户提示词 API

View File

@@ -38,7 +38,7 @@ const speechRate = ref(1.0)
const instruction = ref('neutral') // 指令参数,用于控制音色风格
const emotion = ref('neutral') // 情感参数
const emotionActive = ref(false) // 是否激活情感tabfalse为指令true为情感
const voiceSource = ref('system') // 音色来源user 或 system
const voiceSource = ref('user') // 音色来源user 或 system
// 系统音色库使用CosyVoice v3-flash模型
const SYSTEM_VOICES = [
@@ -704,7 +704,7 @@ let previewObjectUrl = ''
<div class="voice-source-toggle">
<button
v-for="source in ['user', 'system']"
v-for="source in ['user']"
:key="source"
class="source-btn"
:class="{ active: voiceSource === source }"

View File

@@ -29,8 +29,7 @@ export const API_BASE = {
// 会员端 API
APP: `${BASE_URL}`,
// 具体模块路径
ADMIN_AI: `${BASE_URL}/admin-api/ai`,
APP_AI: `${BASE_URL}/app-api/ai`,
APP_AI: `${BASE_URL}/api/ai`,
APP_MEMBER: `${BASE_URL}/app-api/member`,
// 特殊路径

View File

@@ -26,7 +26,7 @@ import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUti
@Tag(name = "用户 App - AI 聊天对话")
@RestController
@RequestMapping("/ai/chat/conversation")
@RequestMapping("/api/chat/conversation")
@Validated
public class AppAiChatConversationController {

View File

@@ -38,7 +38,7 @@ import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUti
@Tag(name = "用户 App - 聊天消息")
@RestController
@RequestMapping("/ai/chat/message")
@RequestMapping("/api/chat/message")
@Validated
@Slf4j
public class AppAiChatMessageController {