ctod 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/basic.ts +97 -0
- package/examples/llama.cpp.ts +56 -0
- package/examples/plugin.ts +118 -0
- package/lib/broker/chat.ts +435 -0
- package/lib/core/parser.ts +62 -0
- package/lib/core/plugin.ts +46 -0
- package/lib/core/translator.ts +115 -0
- package/lib/ctod.ts +71 -0
- package/lib/index.ts +41 -0
- package/lib/plugins/index.ts +38 -0
- package/lib/plugins/limiter.ts +103 -0
- package/lib/plugins/print-log.ts +35 -0
- package/lib/plugins/retry.ts +25 -0
- package/lib/plugins/role.ts +28 -0
- package/lib/service/llama3.cpp/completion.ts +313 -0
- package/lib/service/llama3.cpp/index.ts +53 -0
- package/lib/service/openai/chat.ts +244 -0
- package/lib/service/openai/images-generation.ts +64 -0
- package/lib/service/openai/index.ts +97 -0
- package/lib/service/openai/vision.ts +111 -0
- package/lib/shims.d.ts +4 -0
- package/lib/templates.ts +71 -0
- package/lib/types.ts +4 -0
- package/lib/utils/error.ts +14 -0
- package/lib/utils/validate.ts +64 -0
- package/package.json +1 -1
- package/types/examples/basic.d.ts +1 -0
- package/types/examples/chat-demo.d.ts +2 -0
- package/types/examples/chat-for-llama.cpp-demo.d.ts +2 -0
- package/types/examples/chat-with-json-schema-demo.d.ts +2 -0
- package/types/examples/llama.cpp.d.ts +2 -0
- package/types/examples/plugin-demo.d.ts +2 -0
- package/types/examples/plugin.d.ts +2 -0
- package/types/examples/stream-for-llama.cpp-demo.d.ts +2 -0
- package/types/examples/vision-demo.d.ts +2 -0
- package/types/lib/broker/chat.d.ts +150 -0
- package/types/lib/core/parser.d.ts +32 -0
- package/types/lib/core/plugin.d.ts +34 -0
- package/types/lib/core/translator.d.ts +67 -0
- package/types/lib/ctod.d.ts +32 -0
- package/types/lib/index.d.ts +34 -0
- package/types/lib/plugins/index.d.ts +47 -0
- package/types/lib/plugins/limiter.d.ts +36 -0
- package/types/lib/plugins/print-log.d.ts +5 -0
- package/types/lib/plugins/retry.d.ts +6 -0
- package/types/lib/plugins/role.d.ts +5 -0
- package/types/lib/service/llama3.cpp/completion.d.ts +61 -0
- package/types/lib/service/llama3.cpp/index.d.ts +19 -0
- package/types/lib/service/openai/chat.d.ts +110 -0
- package/types/lib/service/openai/completion.d.ts +59 -0
- package/types/lib/service/openai/images-generation.d.ts +35 -0
- package/types/lib/service/openai/index.d.ts +29 -0
- package/types/lib/service/openai/vision.d.ts +74 -0
- package/types/lib/templates.d.ts +20 -0
- package/types/lib/types.d.ts +1 -0
- package/types/lib/utils/error.d.ts +11 -0
- package/types/lib/utils/validate.d.ts +16 -0
- package/.api-key +0 -1
- package/.nyc_output/42919e68-b472-4a5d-b2d3-5d5153f28467.json +0 -1
- package/.nyc_output/processinfo/42919e68-b472-4a5d-b2d3-5d5153f28467.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.output/.output/stores//344/270/200/345/240/264/346/234/237/345/276/205/345/267/262/344/271/205/347/232/204/345/222/214/350/247/243/cover-0.png +0 -1
- package/.output/.output/stores//344/270/200/345/240/264/346/234/237/345/276/205/345/267/262/344/271/205/347/232/204/345/222/214/350/247/243/cover-1.png +0 -1
- package/.output/.output/stores//344/270/200/345/240/264/346/234/237/345/276/205/345/267/262/344/271/205/347/232/204/345/222/214/350/247/243/story-config.json +0 -4
- package/.output/.output/stores//344/270/200/345/240/264/346/234/237/345/276/205/345/267/262/344/271/205/347/232/204/345/222/214/350/247/243/story.json +0 -22
- package/.output/.output/stores//345/276/236/351/273/221/346/232/227/350/265/260/345/220/221/345/205/211/346/230/216/cover-0.png +0 -1
- package/.output/.output/stores//345/276/236/351/273/221/346/232/227/350/265/260/345/220/221/345/205/211/346/230/216/cover-1.png +0 -1
- package/.output/.output/stores//345/276/236/351/273/221/346/232/227/350/265/260/345/220/221/345/205/211/346/230/216/story-config.json +0 -4
- package/.output/.output/stores//345/276/236/351/273/221/346/232/227/350/265/260/345/220/221/345/205/211/346/230/216/story.json +0 -24
- package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/cover-0.png +0 -1
- package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/cover-1.png +0 -1
- package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/story-config.json +0 -4
- package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/story.json +0 -24
- package/.output/.output/stores//350/227/235/350/241/223/345/256/266/347/232/204/351/235/210/346/204/237/cover-0.png +0 -1
- package/.output/.output/stores//350/227/235/350/241/223/345/256/266/347/232/204/351/235/210/346/204/237/cover-1.png +0 -1
- package/.output/.output/stores//350/227/235/350/241/223/345/256/266/347/232/204/351/235/210/346/204/237/story-config.json +0 -4
- package/.output/.output/stores//350/227/235/350/241/223/345/256/266/347/232/204/351/235/210/346/204/237/story.json +0 -28
- package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/cover-0.png +0 -1
- package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/cover-1.png +0 -1
- package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/story-config.json +0 -4
- package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/story.json +0 -18
- package/.output/.output/stores//350/250/255/350/250/210/350/210/207/351/226/213/347/231/274/347/232/204/346/214/221/346/210/260/content.json +0 -22
- package/.output/.output/talks//344/273/245/347/254/221/350/251/261/347/202/272/345/237/272/347/244/216/347/232/204/351/235/242/350/251/246/content.json +0 -30
- package/.output/.output/talks//344/273/245/347/254/221/350/251/261/347/202/272/345/237/272/347/244/216/347/232/204/351/235/242/350/251/246/cover-1684055229695.png +0 -0
- package/.output/.output/talks//345/234/250/346/224/277/346/262/273/345/200/231/351/201/270/344/272/272/350/276/257/350/253/226/344/270/255/347/232/204/350/252/252/346/234/215/346/200/247/346/272/235/351/200/232/content.json +0 -30
- package/.output/.output/talks//345/234/250/346/224/277/346/262/273/345/200/231/351/201/270/344/272/272/350/276/257/350/253/226/344/270/255/347/232/204/350/252/252/346/234/215/346/200/247/346/272/235/351/200/232/cover-1684056611678.png +0 -0
- package/.output/.output/talks//346/224/276/351/254/206/347/232/204/345/200/231/351/201/270/344/272/272/351/200/262/350/241/214/346/224/277/346/262/273/350/276/257/350/253/226/content.json +0 -36
- package/.output/.output/talks//346/224/276/351/254/206/347/232/204/345/200/231/351/201/270/344/272/272/351/200/262/350/241/214/346/224/277/346/262/273/350/276/257/350/253/226/cover-1684055140609.png +0 -0
- package/.output/.output/talks//346/224/277/346/262/273/347/254/221/350/251/261/content.json +0 -30
- package/.output/.output/talks//346/224/277/346/262/273/347/254/221/350/251/261/cover-1684056246465.png +0 -0
- package/.output/.output/talks//350/251/274/350/253/247/345/256/266/351/225/267/346/225/231/345/270/253/346/234/203/350/255/260/content.json +0 -26
- package/.output/.output/talks//350/251/274/350/253/247/345/256/266/351/225/267/346/225/231/345/270/253/346/234/203/350/255/260/cover-1685785935121.png +0 -0
- package/.output/.output/talks//350/262/241/345/213/231/351/241/247/345/225/217/350/253/256/350/251/242/content.json +0 -26
- package/.output/.output/talks//350/262/241/345/213/231/351/241/247/345/225/217/350/253/256/350/251/242/cover-1685785115833.png +0 -0
- package/.output/.output/talks//351/206/253/347/224/237/345/222/214/347/227/205/344/272/272/350/250/216/350/253/226/346/202/262/345/202/267/content.json +0 -32
- package/.output/.output/talks//351/206/253/347/224/237/345/222/214/347/227/205/344/272/272/350/250/216/350/253/226/346/202/262/345/202/267/cover-1684055075942.png +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"enUsOutline": "A successful businessman discovers a dark secret that threatens his life and career. As he investigates further, he becomes entangled in a web of lies and deceit that leads to a tragic ending.",
|
|
3
|
-
"zhTwOutline": "一位成功的商人發現了一個威脅他生活和事業的黑暗秘密。當他進一步調查時,他卷入了一個謊言和欺騙的網絡,最終導致悲劇結局。",
|
|
4
|
-
"enUsTitle": "Shattered Illusions",
|
|
5
|
-
"zhTwTitle": "破碎的幻象",
|
|
6
|
-
"enUsContent": [
|
|
7
|
-
"John Anderson, a wealthy and influential entrepreneur, leads a seemingly perfect life with a beautiful wife and successful business empire.",
|
|
8
|
-
"One day, while going through some old documents, John stumbles upon evidence of corruption within his company.",
|
|
9
|
-
"Determined to uncover the truth, John starts digging deeper and discovers a sinister conspiracy that goes beyond his wildest imagination.",
|
|
10
|
-
"As John gets closer to exposing the truth, he realizes that powerful individuals will stop at nothing to protect their secrets.",
|
|
11
|
-
"In his pursuit of justice, John's life starts to crumble. His wife leaves him, his business partners betray him, and he becomes a target for assassination.",
|
|
12
|
-
"In a final, desperate act, John confronts the mastermind behind it all, only to meet a tragic end.",
|
|
13
|
-
"With his illusions shattered and his life in ruins, John's story serves as a cautionary tale about the price of seeking the truth in a world governed by lies and corruption."
|
|
14
|
-
],
|
|
15
|
-
"zhTwContent": [
|
|
16
|
-
"約翰·安德森是一位富有且具影響力的企業家,在妻子的陪伴下,他過著看似完美的生活,擁有成功的事業帝國。",
|
|
17
|
-
"一天,當約翰翻閱一些舊文件時,他偶然發現了公司內部的腐敗證據。",
|
|
18
|
-
"決心揭開真相,約翰開始深入調查,發現了一個邪惡的陰謀,超出了他的想像。",
|
|
19
|
-
"隨著約翰接近揭露真相,他意識到強大的個人會不擇手段地保護他們的秘密。",
|
|
20
|
-
"在追求正義的過程中,約翰的生活開始破碎。妻子離開他,商業夥伴背叛他,他成為暗殺的目標。",
|
|
21
|
-
"在最後的絕望行動中,約翰面對了背後的主謀,卻遭遇了悲劇的結局。",
|
|
22
|
-
"隨著他的幻象破碎,生活一片瓦礫,約翰的故事警示人們在這個由謊言和腐敗主宰的世界中追求真相的代價。"
|
|
23
|
-
]
|
|
24
|
-
}
|