fix: 修复流式播放无声音问题(SSE 行缓冲 + 解析层级)

This commit is contained in:
2026-05-09 04:06:47 +08:00
parent ceeb6a3c31
commit d34ebd147e
15 changed files with 679 additions and 458 deletions

View File

@@ -17,6 +17,7 @@ use std::path::PathBuf;
#[derive(Debug, Deserialize, Clone)]
pub struct ProjectConfig {
/// 项目版本号
#[allow(dead_code)]
pub version: String,
/// API 基础 URL 地址
#[serde(default = "default_base_url")]
@@ -69,6 +70,7 @@ pub struct Config {
/// API 基础 URL 地址(来自项目配置)
pub base_url: String,
/// 默认音频格式(来自项目配置)
#[allow(dead_code)]
pub default_format: String,
}