Director icon indicating copy to clipboard operation
Director copied to clipboard

feat: updated system prompt for player link

Open omgate234 opened this issue 1 year ago • 1 comments

Previous Behaviour

  • If Director is asked info about a video, it returns an HLS stream of the video, which cannot be directly played and requires for the console.videodb.io/player?url=<stream_url> to be manually be visited

Proposed Behaviour

  • Based on the updated system prompt, Director is going to display the player link which allows them to view the video

Summary by CodeRabbit

  • New Features
    • When HLS (m3u8) links are shown, a matching web player link is now included: https://console.videodb.io/player?url={hls_url}.
    • Enables instant in-browser playback of HLS streams for quicker previews and testing.
    • Applies wherever HLS URLs appear in responses, reducing the need for external players and simplifying workflows.

omgate234 avatar Oct 13 '25 17:10 omgate234

Walkthrough

Added a new policy rule to the REASONING_SYSTEM_PROMPT in backend/director/core/reasoning.py requiring HLS (m3u8) links to be accompanied by a corresponding player link formatted as https://console.videodb.io/player?url={hls_url}. No code structure or control flow changes.

Changes

Cohort / File(s) Summary
Reasoning prompt update
backend/director/core/reasoning.py
Extended REASONING_SYSTEM_PROMPT with rule 9 to include a player link when displaying HLS (m3u8) URLs.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my ears at rule number nine,
For HLS streams, I add a player line.
A nibble of URLs, neat and bright,
console.videodb.io takes flight.
Hop, hop—links in tandem show,
m3u8 and player in a row.
Carrots and compliance—let’s go! 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title clearly and succinctly describes the primary change—updating the system prompt to include a player link—using concise phrasing without unnecessary detail or noise. It accurately reflects the main purpose of the changeset so a teammate can understand the intent at a glance.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • [ ] 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Oct 13 '25 17:10 coderabbitai[bot]