Skip to content

[BUG] Clustering playlist naming with OpenRouter failingΒ #467

@Th3K1ngP1n

Description

@Th3K1ngP1n

Describe the bug
I get empty responses when using openrouter as ai playlist naming.

Here are the relevant logs:

INFO]-[29-04-2026 22-38-21]-FINAL FISHER-YATES SHUFFLE applied to 'Pop_Indie_Rock_Medium_Sad_Relaxed_automatic': 27 songs
[INFO]-[29-04-2026 22-38-21]-FINAL ORDER: First song = 'Turn It Off (acoustic version)', Last song = 'Hate That I Love You'
[INFO]-[29-04-2026 22-38-21]-Truncated song list from 78 to 25 songs for AI prompt to avoid token limits
[INFO]-[29-04-2026 22-38-21]-Sending prompt to AI (OPENAI):
You are an expert music collector and MUST give a title to this playlist.
The title MUST represent the mood and the activity of when you are listening to the playlist.
The title MUST use ONLY standard ASCII (a-z, A-Z, 0-9, spaces, and - & ' ! . , ? ( ) [ ]).
The title MUST be within the range of 5 to 40 characters long.
No special fonts or emojis.

  • BAD EXAMPLES: 'Ambient Electronic Space - Electric Soundscapes - Emotional Waves' (Too long/descriptive)
  • BAD EXAMPLES: 'Blues Rock Fast Tracks' (Too direct/literal, not evocative enough)
  • BAD EXAMPLES: 'π‘―π’˜π’† π’‚π’“π’π’π’Š 𝒅𝒆𝒕𝒔' (Non-standard characters)
    CRITICAL: Your response MUST be ONLY the single playlist name. No explanations, no 'Playlist Name:', no numbering, no extra text or formatting whatsoever.
    This is the playlist:
  • Diamond Days (Redux) by Lonely the Brave
  • Mullaghmore by Christy Moore
  • Between the Bars by Elliott Smith
  • He Got Away by Noah Gundersen & The Forest Rangers
  • Feel It Still by The Kooks
  • That’s the Way by Led Zeppelin
  • It’s a Beautiful Day by Liverpool Express
  • Carving Circles (Redux) by Interlaker
  • Society by Eddie Vedder
  • Africa by SubAudible Hum
  • Rolling in the Deep by Vance Joy
  • I Was a Prayer (acoustic) by Alkaline Trio
  • Love Love Love (The Cabin Sessions) by Of Monsters and Men
  • This Boy's in Love by Sparkadia
  • Rift (acoustic) by Northlane
  • Dancing Queen by Whitley
  • The Foxy Devil by Christy Moore
  • Dark Globe by Placebo
  • Everlong (acoustic version) by Foo Fighters
  • Only You by Mat McHugh and The Black Bird
  • Stumbleine by The Smashing Pumpkins
  • True Love Waits by Radiohead
  • Senseless Tragedy by Seether
  • If I Could Change Your Mind by Jake Bugg
  • Time to Waste (acoustic) by Alkaline Trio

And

[WARNING]-[29-04-2026 22-38-21]-OpenAI/OpenRouter returned empty content. Full raw response:
[WARNING]-[29-04-2026 22-38-21]-AI naming failed for 'Pop_Indie_Rock_Medium_Sad_Relaxed': Error: AI returned empty content after retries.. Using original name.
[INFO]-[29-04-2026 22-38-21]-FINAL FISHER-YATES SHUFFLE applied to 'Pop_Indie_Rock_Medium_Sad_Relaxed_automatic': 27 songs
[INFO]-[29-04-2026 22-38-21]-FINAL ORDER: First song = 'Turn It Off (acoustic version)', Last song = 'Hate That I Love You'
[INFO]-[29-04-2026 22-38-21]-Truncated song list from 78 to 25 songs for AI prompt to avoid token limits
[INFO]-[29-04-2026 22-38-21]-Sending prompt to AI (OPENAI):
You are an expert music collector and MUST give a title to this playlist.
The title MUST represent the mood and the activity of when you are listening to the playlist.
The title MUST use ONLY standard ASCII (a-z, A-Z, 0-9, spaces, and - & ' ! . , ? ( ) [ ]).
The title MUST be within the range of 5 to 40 characters long.
No special fonts or emojis.

  • BAD EXAMPLES: 'Ambient Electronic Space - Electric Soundscapes - Emotional Waves' (Too long/descriptive)
  • BAD EXAMPLES: 'Blues Rock Fast Tracks' (Too direct/literal, not evocative enough)
  • BAD EXAMPLES: 'π‘―π’˜π’† π’‚π’“π’π’π’Š 𝒅𝒆𝒕𝒔' (Non-standard characters)
    CRITICAL: Your response MUST be ONLY the single playlist name. No explanations, no 'Playlist Name:', no numbering, no extra text or formatting whatsoever.
    This is the playlist:
  • Diamond Days (Redux) by Lonely the Brave
  • Mullaghmore by Christy Moore
  • Between the Bars by Elliott Smith
  • He Got Away by Noah Gundersen & The Forest Rangers
  • Feel It Still by The Kooks
  • That’s the Way by Led Zeppelin
  • It’s a Beautiful Day by Liverpool Express
  • Carving Circles (Redux) by Interlaker
  • Society by Eddie Vedder
  • Africa by SubAudible Hum
  • Rolling in the Deep by Vance Joy
  • I Was a Prayer (acoustic) by Alkaline Trio
  • Love Love Love (The Cabin Sessions) by Of Monsters and Men
  • This Boy's in Love by Sparkadia
  • Rift (acoustic) by Northlane
  • Dancing Queen by Whitley
  • The Foxy Devil by Christy Moore
  • Dark Globe by Placebo
  • Everlong (acoustic version) by Foo Fighters
  • Only You by Mat McHugh and The Black Bird
  • Stumbleine by The Smashing Pumpkins
  • True Love Waits by Radiohead
  • Senseless Tragedy by Seether
  • If I Could Change Your Mind by Jake Bugg
  • Time to Waste (acoustic) by Alkaline Trio
    [WARNING]-[29-04-2026 22-38-23]-OpenAI/OpenRouter returned empty content. Full raw response:
    [INFO]-[29-04-2026 22-38-23]-Retrying in 5 seconds due to empty content...
    [WARNING]-[29-04-2026 22-38-30]-OpenAI/OpenRouter returned empty content. Full raw response:
    [INFO]-[29-04-2026 22-38-30]-Retrying in 10 seconds due to empty content...
    [WARNING]-[29-04-2026 22-38-43]-OpenAI/OpenRouter returned empty content. Full raw response:
    [INFO]-[29-04-2026 22-38-43]-Retrying in 20 seconds due to empty content

I can see from my activity in OpenRouter that tokens have been used to make the requests.

Have you any ideas? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions