Skip to content

Refactor wtf_transcribe: decompose run(), fix imports, rename timeout options#153

Merged
pavanputhra merged 1 commit intomainfrom
pr-141-wtf-transcribe
Apr 22, 2026
Merged

Refactor wtf_transcribe: decompose run(), fix imports, rename timeout options#153
pavanputhra merged 1 commit intomainfrom
pr-141-wtf-transcribe

Conversation

@pavanputhra
Copy link
Copy Markdown
Contributor

Summary

  • Decomposed monolithic run() into ~15 small composable functions (dialog_to_binary, send_audio_to_vfun, transcribe_vcon_dialogs, verify_opts, url_dialog_to_binary, etc.)
  • Fixed stale import: server.lib.vcon_redislib.vcon_redis (post-PR#137 restructuring)
  • Renamed timeoutvfun-timeout; added url-timeout (separate timeout for fetching URL dialogs)
  • Removed min-duration option — filtering responsibility moved upstream
  • Returns None (stops chain) instead of vcon_uuid when vCon missing or config invalid

Test plan

  • Run existing wtf_transcribe tests: docker compose run --rm conserver pytest conserver/links/wtf_transcribe/ -v
  • Confirm vfun-timeout and url-timeout are respected in integration test against vfun server
  • Verify chain stops (returns None) when vfun-server-url is not configured

🤖 Generated with Claude Code

…ix imports, rename timeout options

- Decompose monolithic run() into ~15 small testable functions
  (dialog_to_binary, send_audio_to_vfun, transcribe_vcon_dialogs, verify_opts, etc.)
- Fix stale import: server.lib.vcon_redis → lib.vcon_redis
- Rename timeout → vfun-timeout; add url-timeout (separate timeout for URL fetching)
- Remove min-duration option (filtering now left to upstream)
- Return None instead of vcon_uuid when vCon missing or config invalid

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pavanputhra pavanputhra merged commit b83c673 into main Apr 22, 2026
1 check passed
@pavanputhra pavanputhra deleted the pr-141-wtf-transcribe branch April 22, 2026 06:37
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