Skip to content

Commit

Permalink
Merge pull request #193 from kounoike:improvement/episode-1
Browse files Browse the repository at this point in the history
episode抽出に失敗したとき、0だったのを-1にする(第ゼロ話に備える)
  • Loading branch information
kounoike authored May 6, 2023
2 parents 8409365 + 0ac333b commit 1bf3dfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose/config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ log:
level: DEBUG
recording:
basepath: "/recorded"
contentpathtemplate: "{{.Program.Name | fold}}-{{.Program.StartTime.Format \"20060102-1504\"}}-{{.Service.Name | fold}}.m2ts"
contentpathtemplate: |
{{.Title}}{{if ne .Episode -1}} #{{.Episode}}{{end}}{{if ne .Subtitle ""}}「{{.Subtitle}}」{{end}}-{{.Program.StartTime.Format "20060102-1504"}}-{{.Service.Name}}.m2ts
encoding:
enabled: true
basepath: "/encoded"
Expand Down
2 changes: 1 addition & 1 deletion gpt/gpt_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const systemPrompt = `Parse user message and output with this format:
{"title": title name of the program, "subtitle": subtitle name of the program including the part used to extract the number of episodes, excluding flags such as "[新]", "[再]", etc., empty if it does not exist, "episode": number of episodes extracted from Arabic or Chinese numerals in numeric type, 0 if not present}
{"title": title name of the program, "subtitle": subtitle name of the program including the part used to extract the number of episodes, excluding flags such as "[新]", "[再]", etc., empty if it does not exist, "episode": number of episodes extracted from Arabic or Chinese numerals in numeric type, -1 if not present}
Please return in strict JSON format. Never include non-JSON content in the output, such as commentary.`

const transcribeInitialPrompt = `そうだ。今日はピクニックしない?天気もいいし、絶好のピクニック日和だと思う。いいですね。
Expand Down

0 comments on commit 1bf3dfe

Please sign in to comment.