ctod 0.6.3 → 0.7.1

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.
Files changed (99) hide show
  1. package/.api-key +1 -0
  2. package/.nyc_output/42919e68-b472-4a5d-b2d3-5d5153f28467.json +1 -0
  3. package/.nyc_output/processinfo/42919e68-b472-4a5d-b2d3-5d5153f28467.json +1 -0
  4. package/.nyc_output/processinfo/index.json +1 -0
  5. 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 +1 -0
  6. 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 +1 -0
  7. 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 +4 -0
  8. 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 +22 -0
  9. 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 +1 -0
  10. 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 +1 -0
  11. 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 +4 -0
  12. 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 +24 -0
  13. package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/cover-0.png +1 -0
  14. package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/cover-1.png +1 -0
  15. package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/story-config.json +4 -0
  16. package/.output/.output/stores//347/240/264/347/242/216/347/232/204/345/271/273/350/261/241/story.json +24 -0
  17. 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 +1 -0
  18. 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 +1 -0
  19. 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 +4 -0
  20. package/.output/.output/stores//350/227/235/350/241/223/345/256/266/347/232/204/351/235/210/346/204/237/story.json +28 -0
  21. package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/cover-0.png +1 -0
  22. package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/cover-1.png +1 -0
  23. package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/story-config.json +4 -0
  24. package/.output/.output/stores//350/250/230/346/206/266/345/225/206/344/272/272/story.json +18 -0
  25. 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 +22 -0
  26. 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 +30 -0
  27. 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
  28. 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 +30 -0
  29. 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
  30. 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 +36 -0
  31. 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
  32. package/.output/.output/talks//346/224/277/346/262/273/347/254/221/350/251/261/content.json +30 -0
  33. package/.output/.output/talks//346/224/277/346/262/273/347/254/221/350/251/261/cover-1684056246465.png +0 -0
  34. 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 +26 -0
  35. 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
  36. package/.output/.output/talks//350/262/241/345/213/231/351/241/247/345/225/217/350/253/256/350/251/242/content.json +26 -0
  37. 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
  38. 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 +32 -0
  39. 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
  40. package/README.md +87 -84
  41. package/dist/index.js +1 -1
  42. package/package.json +4 -4
  43. package/examples/chat-demo.ts +0 -89
  44. package/examples/chat-for-llama.cpp-demo.ts +0 -57
  45. package/examples/plugin-demo.ts +0 -110
  46. package/examples/stream-for-llama.cpp-demo.ts +0 -33
  47. package/examples/vision-demo-ex.png +0 -0
  48. package/examples/vision-demo.png +0 -0
  49. package/examples/vision-demo.ts +0 -168
  50. package/lib/broker/chat.ts +0 -406
  51. package/lib/core/parser.ts +0 -62
  52. package/lib/core/plugin.ts +0 -46
  53. package/lib/core/translator.ts +0 -111
  54. package/lib/index.ts +0 -38
  55. package/lib/plugins/index.ts +0 -38
  56. package/lib/plugins/limiter.ts +0 -103
  57. package/lib/plugins/print-log.ts +0 -35
  58. package/lib/plugins/retry.ts +0 -25
  59. package/lib/plugins/role.ts +0 -28
  60. package/lib/service/llama3.cpp/completion.ts +0 -313
  61. package/lib/service/llama3.cpp/index.ts +0 -53
  62. package/lib/service/openai/chat.ts +0 -244
  63. package/lib/service/openai/images-generation.ts +0 -64
  64. package/lib/service/openai/index.ts +0 -97
  65. package/lib/service/openai/vision.ts +0 -111
  66. package/lib/shims.d.ts +0 -4
  67. package/lib/templates.ts +0 -71
  68. package/lib/types.ts +0 -4
  69. package/lib/utils/error.ts +0 -14
  70. package/lib/utils/validate.ts +0 -64
  71. package/logo.ai +2 -1141
  72. package/logo.png +0 -0
  73. package/types/examples/chat-demo.d.ts +0 -2
  74. package/types/examples/chat-for-llama.cpp-demo.d.ts +0 -2
  75. package/types/examples/chat-with-json-schema-demo.d.ts +0 -2
  76. package/types/examples/plugin-demo.d.ts +0 -2
  77. package/types/examples/stream-for-llama.cpp-demo.d.ts +0 -2
  78. package/types/examples/vision-demo.d.ts +0 -2
  79. package/types/lib/broker/chat.d.ts +0 -142
  80. package/types/lib/core/parser.d.ts +0 -32
  81. package/types/lib/core/plugin.d.ts +0 -34
  82. package/types/lib/core/translator.d.ts +0 -68
  83. package/types/lib/index.d.ts +0 -31
  84. package/types/lib/plugins/index.d.ts +0 -47
  85. package/types/lib/plugins/limiter.d.ts +0 -36
  86. package/types/lib/plugins/print-log.d.ts +0 -5
  87. package/types/lib/plugins/retry.d.ts +0 -6
  88. package/types/lib/plugins/role.d.ts +0 -5
  89. package/types/lib/service/llama3.cpp/completion.d.ts +0 -61
  90. package/types/lib/service/llama3.cpp/index.d.ts +0 -19
  91. package/types/lib/service/openai/chat.d.ts +0 -110
  92. package/types/lib/service/openai/completion.d.ts +0 -59
  93. package/types/lib/service/openai/images-generation.d.ts +0 -35
  94. package/types/lib/service/openai/index.d.ts +0 -29
  95. package/types/lib/service/openai/vision.d.ts +0 -74
  96. package/types/lib/templates.d.ts +0 -20
  97. package/types/lib/types.d.ts +0 -1
  98. package/types/lib/utils/error.d.ts +0 -11
  99. package/types/lib/utils/validate.d.ts +0 -16
@@ -0,0 +1,4 @@
1
+ {
2
+ "style": "Inspirational",
3
+ "ending": "Revelatory ending"
4
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "enUsOutline": "A struggling artist is inspired to create his greatest work after a life-changing encounter with a wise old man.",
3
+ "zhTwOutline": "一位掙扎中的藝術家在和一位智慧老者的邂逅後,得到靈感創作出他最偉大的作品。",
4
+ "enUsTitle": "The Artist's Inspiration",
5
+ "zhTwTitle": "藝術家的靈感",
6
+ "enUsContent": [
7
+ "Jacob had always dreamed of being a successful artist, but no matter how hard he tried, he could never seem to create anything truly great. He had struggled for years, barely making enough to support himself, and he was beginning to lose hope.",
8
+ "One day, while out on a walk, he came across an old man sitting on a park bench. The man looked wise and kind, and Jacob felt drawn to him. They struck up a conversation, and before he knew it, Jacob had spent hours talking to the man.",
9
+ "As they spoke, the old man shared stories with Jacob about his own life as an artist. He told him about the struggles he had faced, the failures he had endured, and the moments of inspiration that had led him to create his greatest works.",
10
+ "Jacob was inspired by the old man's words, and he felt a renewed sense of purpose. He went back to his studio and began to work like he had never worked before. He poured all of his heart and soul into his art, and for the first time in his life, he felt like he was truly creating something meaningful.",
11
+ "Months went by, and Jacob worked tirelessly on his masterpiece. He knew that it was the best thing he had ever created, and he was filled with a sense of pride and accomplishment.",
12
+ "On the day of his gallery opening, Jacob's heart was pounding with excitement. He had invited the old man as his guest of honor, and he couldn't wait for him to see the result of his inspiration.",
13
+ "As the old man walked through the gallery, Jacob watched him from afar, anxious to see his reaction. When he finally approached Jacob, tears were streaming down his face. He embraced Jacob tightly and told him that this was the most beautiful thing he had ever seen.",
14
+ "Overwhelmed with emotion, Jacob realized that the old man had been more than just a chance encounter. He had been a messenger of inspiration, sent to guide Jacob towards the realization of his true potential.",
15
+ "And from that day on, Jacob knew that he would never stop creating. He would continue to pour his heart and soul into his art, always striving to create something that would touch the hearts of those who saw it."
16
+ ],
17
+ "zhTwContent": [
18
+ "Jacob一直夢想成為一位成功的藝術家,但無論他如何努力,卻總是無法創作出真正偉大的作品。他已經努力了多年,僅僅勉強維持自己的生計,他開始失去了希望。",
19
+ "有一天,當他在散步時,他遇到了一位坐在公園長椅上的老人。這個人看起來很有智慧和善良,Jacob覺得被他吸引了。他們開始對話,在他還沒有意識到的情況下,Jacob已經和那個人聊了幾個小時。",
20
+ "當他們談話時,老人與Jacob分享了他作為一位藝術家的生活故事。他告訴他他所面臨的困難,他所忍受的失敗,以及那些啟發他創造他最偉大作品的時刻。",
21
+ "老人的話激勵了Jacob,他感到一種更新的目的感。他回到他的工作室,開始比以往任何時候都要努力地工作。他將自己的心靈與靈魂都倒進了他的藝術中,生命中第一次感到他正在創造真正有意義的東西。",
22
+ "數月來,Jacob不知疲倦地努力著他的傑作。他知道這是他創造的最好的東西,他充滿了自豪感和成就感。",
23
+ "在他的藝廊開幕當天,Jacob的心跳著興奮。他邀請了老人作為他的榮譽來賓,他迫不及待地想讓他看到他所啟發的成果。",
24
+ "當老人穿過畫廊時,Jacob從遠處看著他,不安地等待他的反應。當他終於走到Jacob面前時,淚水從他的臉上流下來。他緊緊地擁抱著Jacob告訴他,這是他曾經見過的最美麗的東西。",
25
+ "Jacob不免感動萬分,他意識到老人不只是一個偶然的邂逅,他是啟發的使者,引導Jacob實現他真正的潛力。",
26
+ "從那一天起,Jacob知道他不會停止創作。他將繼續將自己的心靈和靈魂倒進他的藝術中,不斷努力創造能觸動觀眾內心的東西。"
27
+ ]
28
+ }