Improve AI description generation to handle different content types

Update the AI service to allow specifying content type (e.g., 'oddaja' for shows) and adjust prompts accordingly to generate more relevant descriptions for various media formats.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/n7jzC7R
This commit is contained in:
sebastjanartic
2025-09-02 14:32:40 +00:00
parent fb4aea7b25
commit 19e957153f
3 changed files with 26 additions and 9 deletions
+2 -1
View File
@@ -1108,7 +1108,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
language: "german",
includeArtistInfo,
includeLabelInfo,
customInstructions
customInstructions,
contentType: video.contentType || 'music_video'
});
console.log("Generated description:", description); // Debug log