adding movies & web search tool
This commit is contained in:
@@ -93,13 +93,15 @@ export function Recom({ id }: RecomProps) {
|
||||
disliked_shows: string;
|
||||
themes: string;
|
||||
brainstorm_count?: number;
|
||||
media_type: import('../types/index.js').MediaType;
|
||||
use_web_search?: boolean;
|
||||
}) => {
|
||||
const newId = await createNew(body);
|
||||
route(`/recom/${newId}`);
|
||||
};
|
||||
|
||||
const isRunning = rec?.status === 'running' || rec?.status === 'pending' || !!sseUrl;
|
||||
const feedbackMap = new Map(feedback.map((f) => [f.tv_show_name, f]));
|
||||
const feedbackMap = new Map(feedback.map((f) => [f.item_name, f]));
|
||||
|
||||
return (
|
||||
<div class="layout">
|
||||
@@ -128,7 +130,7 @@ export function Recom({ id }: RecomProps) {
|
||||
show={show}
|
||||
existingFeedback={feedbackMap.get(show.title)}
|
||||
onFeedback={async (name, stars, comment) => {
|
||||
await submitFeedback({ tv_show_name: name, stars, feedback: comment });
|
||||
await submitFeedback({ item_name: name, stars, feedback: comment });
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user