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 }"