Skip to content

refactor(llm-server): serve chat models only - #2336

Open
wqymi wants to merge 1 commit into
mainfrom
feat/llm-server-drop-audio
Open

refactor(llm-server): serve chat models only#2336
wqymi wants to merge 1 commit into
mainfrom
feat/llm-server-drop-audio

Conversation

@wqymi

@wqymi wqymi commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

mimo llm-server 只服务 chat 模型。/v1 上只剩 GET /modelsPOST /chat/completions

移除的部分:

  • POST /v1/audio/speechPOST /v1/audio/transcriptions 两条路由,以及它们背后的音频 over-chat 传输层(llm-server/audio-chat.ts)与语音请求协议。
  • llm-server issue --capabilityllm-server/capability.tsissue 现在只有 --model(可重复,不给即全部配置的模型),JSON 输出相应少了 capability / model / alternatives*
  • provider 层只为语音存在的部分:getSpeech、speech 模型缓存、SpeechUnsupportedErrorisSpeechModel / isTranscriptionModel,以及 modelKind / ModelKind 与模型能力 voiceDesign / voiceClone、配置字段 voice_design / voice_clone
  • 相应的测试与内置技能文档;openapi.json 与 JS SDK 类型已重生。

chat 侧的多模态音频输入(input_audio content part)保留——那是对话模型的输入形态。TUI 语音输入不受影响,它直连配置的 ASR 供应商,从不经过这条表面。

顺带的整理:system.test.ts 的模板守卫改为断言结构标记加一条绝对家目录路径正则;删掉 deep-research 技能里引用未随仓库发行脚本的一节;TUI fixture 用 /tmp 路径;AGENTS.md 补一条示例值约定。

Verification

  • bun typecheck(packages/opencode)通过
  • bun test test/llm-server test/provider test/cli test/config test/server test/session/system.test.ts:1197 pass / 4 skip

Drops the /v1/audio/* routes, the speech-only protocol and provider plumbing
behind them, and the voice_design/voice_clone model capabilities.
@wqymi
wqymi force-pushed the feat/llm-server-drop-audio branch from 9e6ac5d to 86c83c7 Compare September 4, 2026 16:49
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