Skip to content

feat(stt): make OpenAI transcription model configurable - #72

Merged
jason-shen merged 1 commit into
streamcoreai:mainfrom
xianjianlf2:feat/openai-stt-model-25
Aug 29, 2026
Merged

feat(stt): make OpenAI transcription model configurable#72
jason-shen merged 1 commit into
streamcoreai:mainfrom
xianjianlf2:feat/openai-stt-model-25

Conversation

@xianjianlf2

Copy link
Copy Markdown
Contributor

Summary

  • add [openai].stt_model, defaulting to whisper-1 for backward compatibility
  • pass the configured model through the OpenAI STT client into each transcription request
  • add config default/override tests and an HTTP-level multipart request regression test
  • document the setting and supported transcription models in English and Chinese config/provider docs and READMEs

Closes #25

Verification

  • gofmt -l . (no output)
  • go build ./...
  • go vet ./...
  • go test -race ./...
  • git diff --check

The request test captures the actual multipart payload sent through go-openai and verifies model=gpt-4o-transcribe; no live API key or network provider was used.

Signed-off-by: MarkXian <mark-xian@foxmail.com>
@jason-shen
jason-shen merged commit 2aa2132 into streamcoreai:main Aug 29, 2026
1 check passed
@jason-shen

Copy link
Copy Markdown
Member

@xianjianlf2 thank you!

@jason-shen jason-shen added the enhancement New feature or request label Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAI STT model is hardcoded to whisper-1 — make it configurable

2 participants