一键生成 YouTube 视频摘要
yt_summary.Rd
下载字幕、解析内容并生成摘要的便捷函数。支持单个视频和播放列表。
Usage
yt_summary(
url,
base_url = "https://api.chatanywhere.tech/v1",
api_key = Sys.getenv("CHATANYWHERE_API_KEY"),
lang = "en",
summary_lang = "zh",
rettype = c("list", "data.frame", "tibble"),
output_dir = tempdir(),
model = "gpt-4o-mini"
)