Skip to content

Commit 934b249

Browse files
committed
feat(videos): trying to improve success rate of ai chapter generation
1 parent 0c3b5c3 commit 934b249

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/services/ai_search_service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class AiSearchService {
2424
async chapters(captions: string) {
2525
const { data } = await this.#api.post('', {
2626
query: `Take the provided SRT subtitles and create as few as possible, high-level, timestamp chapters from them. Between 3 to 8 chapters. The chapters time should only consist of minutes and seconds unless the captions go over an hour. Response should only contain JavaScript parsable JSON in the structure: [{ start: 'mm:ss', end: 'mm:ss', text: 'chapter text' }]. Captions: ${captions}`,
27+
model: '@cf/meta/llama-4-scout-17b-16e-instruct',
28+
rewrite_query: false,
2729
})
2830

2931
return data

0 commit comments

Comments
 (0)