Skip to content

fix: 修复TTS服务CORS缺失及asyncio事件循环冲突问题#248

Merged
69gg merged 1 commit intoRTGS2017:mainfrom
69gg:dev
Feb 25, 2026
Merged

fix: 修复TTS服务CORS缺失及asyncio事件循环冲突问题#248
69gg merged 1 commit intoRTGS2017:mainfrom
69gg:dev

Conversation

@69gg
Copy link
Collaborator

@69gg 69gg commented Feb 25, 2026

  • 添加CORSMiddleware,修复Electron dev模式下跨端口fetch被block的问题
  • 将generate_speech()同步调用改为await _generate_audio(), 避免在asyncio事件循环运行时再次调用asyncio.run()导致RuntimeError

- 添加CORSMiddleware,修复Electron dev模式下跨端口fetch被block的问题
- 将generate_speech()同步调用改为await _generate_audio(),
  避免在asyncio事件循环运行时再次调用asyncio.run()导致RuntimeError

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@69gg 69gg merged commit 8253bb0 into RTGS2017:main Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant