Skip to content

Commit

Permalink
fix: improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 7, 2023
1 parent cfa53c0 commit 6f69d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bilibili/fetchBilibiliSubtitleUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { sample } from "~/utils/fp";

export const fetchBilibiliSubtitleUrls = async (bvId: string) => {
const requestUrl = `https://api.bilibili.com/x/web-interface/view?bvid=${bvId}`;
console.log(`fetch`, requestUrl, process.env.BILIBILI_SESSION_TOKEN);
console.log(`fetch`, requestUrl);
const sessdata = sample(process.env.BILIBILI_SESSION_TOKEN?.split(","));
const headers = {
Accept: "application/json",
Expand Down
2 changes: 1 addition & 1 deletion lib/openai/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const PROMPT_LANGUAGE_MAP = {
"हिंदी" : "Hindi"
}
export function getSummaryPrompt(title: string, transcript: any, promptConfig: PromptConfig) {
console.log('========promptConfig========', promptConfig);
console.log('prompt ', promptConfig);
const { language = '中文', shouldShowTimestamp } = promptConfig
const betterPrompt = `我希望你是一名专业的视频内容编辑,帮我用${language}总结视频的内容精华。请你将视频字幕文本进行总结,然后以无序列表的方式返回,不要超过5条。记得不要重复句子,确保所有的句子都足够精简,清晰完整,祝你好运!`
const promptWithTimestamp = `我希望你是一名专业的视频内容编辑,帮我用${language}总结视频的内容精华。请先用一句简短的话总结视频梗概。然后再请你将视频字幕文本进行总结,在每句话的最前面加上时间戳(类似 10:24),每句话开头只需要一个开始时间。请你以无序列表的方式返回,请注意不要超过5条哦,确保所有的句子都足够精简,清晰完整,祝你好运!`;
Expand Down

1 comment on commit 6f69d80

@vercel
Copy link

@vercel vercel bot commented on 6f69d80 Mar 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.