adding movies & web search tool
All checks were successful
Recommender Build and Deploy (internal) / Build Recommender Image (push) Successful in 4m0s
Recommender Build and Deploy (internal) / Deploy Recommender (internal) (push) Successful in 12s

This commit is contained in:
2026-03-26 20:35:22 -03:00
parent 6fdfc3797a
commit 1437092a42
25 changed files with 450 additions and 135 deletions

View File

@@ -1,4 +1,4 @@
import type { Recommendation, RecommendationSummary, FeedbackEntry } from '../types/index.js';
import type { MediaType, Recommendation, RecommendationSummary, FeedbackEntry } from '../types/index.js';
const BASE = '/api';
@@ -20,6 +20,8 @@ export function createRecommendation(body: {
disliked_shows: string;
themes: string;
brainstorm_count?: number;
media_type: MediaType;
use_web_search?: boolean;
}): Promise<{ id: string }> {
return request('/recommendations', {
method: 'POST',
@@ -40,7 +42,7 @@ export function rerankRecommendation(id: string): Promise<{ ok: boolean }> {
}
export function submitFeedback(body: {
tv_show_name: string;
item_name: string;
stars: number;
feedback?: string;
}): Promise<{ ok: boolean }> {