adding movies & web search tool
This commit is contained in:
@@ -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 }> {
|
||||
|
||||
Reference in New Issue
Block a user