Skip to content

Fix AI provider errors and media service startup#2102

Merged
theovilardo merged 1 commit into
masterfrom
fix/ai-provider-errors-and-fgs-start
May 26, 2026
Merged

Fix AI provider errors and media service startup#2102
theovilardo merged 1 commit into
masterfrom
fix/ai-provider-errors-and-fgs-start

Conversation

@lostf1sh
Copy link
Copy Markdown
Collaborator

Summary

  • trim AI API keys and improve provider error classification so valid keys are not reported as invalid for model/API access failures
  • keep Gemini choices focused on cheap/fast Flash models, defaulting to gemini-2.5-flash-lite
  • promote MusicService to a temporary foreground service immediately on cold start to avoid media-button foreground-service timeout crashes

Testing

  • JAVA_HOME=/usr/lib/jvm/java-21-openjdk PATH=/usr/lib/jvm/java-21-openjdk/bin:$PATH ./gradlew :app:testDebugUnitTest --tests "com.theveloper.pixelplay.data.ai.provider.AiProviderSupportTest"

Closes #2100
Closes #2099

@YtMechnij
Copy link
Copy Markdown
Contributor

Why not 3.1 flash lite? 2.5 lite is old and worse
image

@theovilardo theovilardo merged commit 76e0534 into master May 26, 2026
3 of 4 checks passed
@lostf1sh
Copy link
Copy Markdown
Collaborator Author

lostf1sh commented May 26, 2026

Why not 3.1 flash lite? 2.5 lite is old and worse image

cheaper, faster less usage. we dont generate essays here, just some words.

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.

[Bug]: AI playlist generator [Bug]: Sometimes an error occurs when creating foreground service

3 participants