Skip to content

[BUG] openrouter error #367

@yimingzhaomath

Description

@yimingzhaomath

Describe the bug
When using instant playlist, it errors out and falls back to genre search. Note that it does not happen every single time. Therefore, it must be related to either my input to generate the playlist, or what the AI returns.

To Reproduce
This is what I put in the box "soft pop songs featuring female vocals"

Expected behavior
The playlist generates without issue.

Screenshots

🎵 NEW MCP-BASED PLAYLIST GENERATION
Request: 'soft pop songs featuring female vocals'
AI Provider: OPENAI
🤖 Using MCP Agentic Workflow for playlist generation
Target: 100 songs
Available tools: song_similarity, artist_similarity, song_alchemy, ai_brainstorm, search_database
============================================================
ITERATION 1/5
Current progress: 0/100 songs
============================================================
--- AI Decision (Iteration 1) ---
Using timeout: 300 seconds for OpenAI/Mistral request
❌ AI tool calling failed: OpenAI error: Expecting ',' delimiter: line 1 column 15 (char 14)
🔄 Fallback: Trying genre search...
   Fallback added 100 songs
============================================================
ITERATION 2/5
Current progress: 100/100 songs
============================================================
✅ Target reached! Stopping iteration.
✅ SUCCESS! Generated playlist with 100 songs
   Total songs collected: 100
   Iterations used: 2/5
   Tools called: 1
📊 Tool Contribution (Collected → Final Playlist):
   • search_database(no filters): 100 songs

Environment (please complete the following information):

  • OS: MacOS
  • Deployment: OrbStack
  • AudioMuse-AI Version: v0.9.0
  • Jellyfin/Navidrome Version: Navidrome 0.60.2
  • Browser: safari
  • CPU: Apple Silicon M4
  • RAM: 16GB
  • Disk: stock SSD

Additional context

Again, sometimes it works, sometimes it does not. I ran the same thing 2 mins prior to this and it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions