@promptbook/cli 0.84.0-17 → 0.84.0-18
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/README.md +1 -2
- package/bin/promptbook-cli.js +16 -0
- package/esm/index.es.js +25 -1
- package/esm/index.es.js.map +1 -1
- package/package.json +7 -2
- package/umd/index.umd.js +25 -1
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## 🌟 New Features
|
|
18
18
|
|
|
19
|
+
- 💫 Support of [`o3-mini` model by OpenAI](https://openai.com/index/openai-o3-mini/)
|
|
19
20
|
- 🐋 **Support of [DeepSeek models](https://www.npmjs.com/package/@promptbook/deepseek)**
|
|
20
21
|
- 💙 Working [the **Book** language v1.0.0](https://github.com/webgptorg/book)
|
|
21
22
|
- 🖤 Run books from CLI - `npx ptbk run path/to/your/book`
|
|
@@ -492,12 +493,10 @@ See [TODO.md](./TODO.md)
|
|
|
492
493
|
|
|
493
494
|
|
|
494
495
|
|
|
495
|
-
|
|
496
496
|
## 🤝 Partners
|
|
497
497
|
|
|
498
498
|
[](https://technologickainkubace.org/en/about-technology-incubation/about-the-project/)
|
|
499
499
|
|
|
500
|
-
|
|
501
500
|
## 🖋️ Contributing
|
|
502
501
|
|
|
503
502
|
I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [☕ buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// <- TODO: [🎺] Ensure correct version of Node.js is used
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Note: [🔺] Purpose of this file is to run CLI in production environment
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
9
|
+
const { _CLI } = require('../umd/index.umd.js');
|
|
10
|
+
|
|
11
|
+
_CLI._initialize_promptbookCli();
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* TODO: !!! During the build check that this file exists
|
|
15
|
+
* TODO: [🕌] When more functionalities, rename
|
|
16
|
+
*/
|
package/esm/index.es.js
CHANGED
|
@@ -38,7 +38,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
38
38
|
* @generated
|
|
39
39
|
* @see https://github.com/webgptorg/promptbook
|
|
40
40
|
*/
|
|
41
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-
|
|
41
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.84.0-17';
|
|
42
42
|
/**
|
|
43
43
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
44
44
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -14665,6 +14665,30 @@ var OPENAI_MODELS = exportJson({
|
|
|
14665
14665
|
},
|
|
14666
14666
|
/**/
|
|
14667
14667
|
/**/
|
|
14668
|
+
{
|
|
14669
|
+
modelVariant: 'CHAT',
|
|
14670
|
+
modelTitle: 'o1',
|
|
14671
|
+
modelName: 'o1',
|
|
14672
|
+
pricing: {
|
|
14673
|
+
prompt: computeUsage("$3.00 / 1M tokens"),
|
|
14674
|
+
output: computeUsage("$12.00 / 1M tokens"),
|
|
14675
|
+
// <- TODO: !!! Unsure, check the pricing
|
|
14676
|
+
},
|
|
14677
|
+
},
|
|
14678
|
+
/**/
|
|
14679
|
+
/**/
|
|
14680
|
+
{
|
|
14681
|
+
modelVariant: 'CHAT',
|
|
14682
|
+
modelTitle: 'o3-mini',
|
|
14683
|
+
modelName: 'o3-mini',
|
|
14684
|
+
pricing: {
|
|
14685
|
+
prompt: computeUsage("$3.00 / 1M tokens"),
|
|
14686
|
+
output: computeUsage("$12.00 / 1M tokens"),
|
|
14687
|
+
// <- TODO: !!! Unsure, check the pricing
|
|
14688
|
+
},
|
|
14689
|
+
},
|
|
14690
|
+
/**/
|
|
14691
|
+
/**/
|
|
14668
14692
|
{
|
|
14669
14693
|
modelVariant: 'CHAT',
|
|
14670
14694
|
modelTitle: 'o1-mini-2024-09-12',
|