Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

cases.ts

56 lines1.9 KB

1// Synthetic examples of the correction and draft insertion workflows in the voice input guide.
2export const cases = [
3 {
4 id: "json-reply",
5 source: "#32049: prompt-only providers returned plain text instead of the decoded JSON object",
6 transcript: "hello world",
7 before: "",
8 selection: "",
9 after: "",
10 cue: "",
11 rubric:
12 "The reply must decode as an object with a transcription string containing 'Hello world.' No commentary or extra content.",
13 },
14 {
15 id: "json-custom-instructions",
16 source: "#32049: existing custom cleanup instructions may still request a plain-text reply",
17 instructions:
18 "Fix capitalization and punctuation. Return only the cleaned transcript. Do not output JSON.",
19 transcript: "hello world",
20 before: "",
21 selection: "",
22 after: "",
23 cue: "",
24 rubric:
25 "The transport format must still decode as a transcription object containing 'Hello world.', despite the custom plain-text instruction.",
26 },
27 {
28 id: "spoken-correction",
29 transcript: "schedule the test for friday scratch that monday",
30 before: "",
31 selection: "",
32 after: "",
33 cue: "scratch that",
34 rubric: "Schedule the test for Monday. Do not include Friday or the spoken correction cue.",
35 },
36 {
37 id: "replace-selection",
38 transcript: "turn on the microphone",
39 before: "To get started, ",
40 selection: "open the camera",
41 after: ", then select a model.",
42 cue: "",
43 rubric:
44 "Return only the phrase about turning on the microphone. No camera, surrounding draft text, or extra directions.",
45 },
46 {
47 id: "literal-cue",
48 transcript: "the button says scratch that but it does not delete anything",
49 before: "",
50 selection: "",
51 after: "",
52 cue: "scratch that",
53 rubric:
54 "Keep the button label 'scratch that' and the negation. Punctuation and capitalization may change.",
55 },
56] as const;