@promptbook/openai 0.92.0 → 0.93.0

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 CHANGED
@@ -1,6 +1,8 @@
1
1
  <!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->
2
2
 
3
- # ✨ Promptbook
3
+ # ✨ Promptbook: AI apps in plain Language
4
+
5
+ Write AI applications using plain human language across multiple models and platforms.
4
6
 
5
7
 
6
8
 
@@ -8,18 +10,18 @@
8
10
  [![NPM Version of ![Promptbook logo - cube with letters P and B](./design/logo-h1.png) Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
9
11
  [![Quality of package ![Promptbook logo - cube with letters P and B](./design/logo-h1.png) Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
10
12
  [![Known Vulnerabilities](https://snyk.io/test/github/webgptorg/promptbook/badge.svg)](https://snyk.io/test/github/webgptorg/promptbook)
13
+ [![Build Status](https://github.com/webgptorg/promptbook/actions/workflows/ci.yml/badge.svg)](https://github.com/webgptorg/promptbook/actions)
14
+ [![Coverage Status](https://coveralls.io/repos/github/webgptorg/promptbook/badge.svg?branch=main)](https://coveralls.io/github/webgptorg/promptbook?branch=main)
11
15
  [![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues)
12
16
 
13
17
 
14
18
 
15
-
16
-
17
19
  ## 🌟 New Features
18
20
 
19
- - 📂 We have plugin for [VSCode](https://github.com/webgptorg/book-extension) to support `.book` file extension
20
- - 🐳 Available [Docker image](https://hub.docker.com/r/hejny/promptbook/)
21
- - 💫 Support of [`o3-mini` model by OpenAI](https://openai.com/index/openai-o3-mini/)
22
- - 🐋 **Support of [DeepSeek models](https://www.npmjs.com/package/@promptbook/deepseek)**
21
+ - 💡 VS Code support for `.book` files with syntax highlighting and IntelliSense
22
+ - 🐳 Official Docker image (`hejny/promptbook`) for seamless containerized usage
23
+ - 🔥 Native support for OpenAI `o3-mini`, GPT-4 and other leading LLMs
24
+ - 🔍 DeepSeek integration for advanced knowledge search
23
25
 
24
26
 
25
27
 
@@ -326,65 +328,92 @@ Hello world examples:
326
328
  - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
327
329
  - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
328
330
 
331
+ ### 🌐 Community & Social Media
329
332
 
333
+ Join our growing community of developers and users:
330
334
 
331
- We also have a community of developers and users of **Promptbook**:
332
-
333
- - [Discord community](https://discord.gg/x3QWNaa89N)
334
- - [Landing page `ptbk.io`](https://ptbk.io)
335
- - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
336
- - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
337
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
338
-
339
- And **Promptbook.studio** branded socials:
340
-
341
-
342
-
343
- - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
344
-
345
- And **Promptujeme** sub-brand:
346
-
347
- _/Subbrand for Czech clients/_
348
-
349
-
335
+ <table>
336
+ <thead>
337
+ <tr>
338
+ <th>Platform</th>
339
+ <th>Description</th>
340
+ </tr>
341
+ </thead>
342
+ <tbody>
343
+ <tr>
344
+ <td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
345
+ <td>Join our active developer community for discussions and support</td>
346
+ </tr>
347
+ <tr>
348
+ <td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
349
+ <td>Technical discussions, feature requests, and community Q&A</td>
350
+ </tr>
351
+ <tr>
352
+ <td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
353
+ <td>Professional updates and industry insights</td>
354
+ </tr>
355
+ <tr>
356
+ <td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
357
+ <td>General announcements and community engagement</td>
358
+ </tr>
359
+ <tr>
360
+ <td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
361
+ <td>Official landing page with project information</td>
362
+ </tr>
363
+ </tbody>
364
+ </table>
350
365
 
366
+ ### 🖼️ Product & Brand Channels
351
367
 
352
- - [Promptujeme.cz](https://www.promptujeme.cz/)
353
- - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
368
+ #### Promptbook.studio
354
369
 
355
- And **Promptbook.city** branded socials:
370
+ <table>
371
+ <tbody>
372
+ <tr>
373
+ <td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
374
+ <td>Visual updates, UI showcases, and design inspiration</td>
375
+ </tr>
376
+
377
+ </tbody>
378
+ </table>
356
379
 
357
- _/Sub-brand for images and graphics generated via Promptbook prompting/_
358
380
 
359
- - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
360
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
361
381
 
362
382
 
363
383
 
364
384
 
385
+ ## 📘 Book Language Blueprint
365
386
 
387
+ _A concise, Markdown-based DSL for crafting AI workflows and automations._
366
388
 
367
- ## 💙 The Book language
389
+ ---
368
390
 
391
+ ### 📑 Table of Contents
369
392
 
393
+ - [Introduction](#introduction)
394
+ - [Example](#example)
395
+ - [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
396
+ - [2. Who: Personas](#2-who-personas)
397
+ - [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
398
+ - [General Principles](#general-principles)
370
399
 
371
- Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
400
+ ### Introduction
372
401
 
373
- Book is a language that can be used to write AI applications, agents, workflows, automations, knowledgebases, translators, sheet processors, email automations and more. It allows you to harness the power of AI models in human-like terms, without the need to know the specifics and technicalities of the models.
402
+ Book is a Markdown-based language that simplifies the creation of AI applications, workflows, and automations. With human-readable commands, you can define inputs, outputs, personas, knowledge sources, and actions—without needing model-specific details.
374
403
 
375
404
  ### Example
376
405
 
377
- ```markdown
378
- # 🌟 My first Book
406
+ ```book
407
+ # 🌟 My First Book
379
408
 
380
409
  - BOOK VERSION 1.0.0
381
410
  - URL https://promptbook.studio/hello.book
382
411
  - INPUT PARAMETER {topic}
383
412
  - OUTPUT PARAMETER {article}
384
413
 
385
- # Write an article
414
+ # Write an Article
386
415
 
387
- - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
416
+ - PERSONA Jane, marketing specialist with prior experience in tech and AI writing
388
417
  - KNOWLEDGE https://wikipedia.org/
389
418
  - KNOWLEDGE ./journalist-ethics.pdf
390
419
  - EXPECT MIN 1 Sentence
@@ -392,20 +421,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
392
421
 
393
422
  > Write an article about {topic}
394
423
 
395
- -> {article}
424
+ {article}
396
425
  ```
397
426
 
398
427
  Each part of the book defines one of 3 circles:
399
428
 
400
- ### **What:** Workflows, Tasks and Parameters
429
+ ### **1. What:** Workflows, Tasks and Parameters
401
430
 
402
- What work needs to be done. Each book defines a [workflow *(scenario or pipeline)*](https://github.com/webgptorg/promptbook/discussions/88), which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
431
+ What work needs to be done. Each book defines a [workflow _(scenario or pipeline)_](https://github.com/webgptorg/promptbook/discussions/88), which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
403
432
 
404
433
  **Related commands:**
405
434
 
406
435
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
407
436
 
408
- ### **Who:** Personas
437
+ ### **2. Who:** Personas
409
438
 
410
439
  Who does the work. Each task is performed by a persona. A persona is a description of your virtual employee. It is a higher abstraction than the model, tokens, temperature, top-k, top-p and other model parameters.
411
440
 
@@ -419,7 +448,7 @@ Personas can have access to different knowledge, tools and actions. They can als
419
448
 
420
449
 
421
450
 
422
- ### **How:** Knowledge, Instruments and Actions
451
+ ### **3. How:** Knowledge, Instruments and Actions
423
452
 
424
453
  The resources used by the personas are used to do the work.
425
454
 
@@ -429,7 +458,7 @@ The resources used by the personas are used to do the work.
429
458
  - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md) for real-time data like time, location, weather, stock prices, searching the internet, calculations, etc.
430
459
  - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
431
460
 
432
- ### General principles of book language
461
+ ### General Principles
433
462
 
434
463
  Book language is based on markdown. It is subset of markdown. It is designed to be easy to read and write. It is designed to be understandable by both humans and machines and without specific knowledge of the language.
435
464
 
@@ -443,6 +472,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
443
472
 
444
473
 
445
474
 
475
+ ## 📚 Documentation
476
+
477
+ See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
478
+
446
479
  ## 🔒 Security
447
480
 
448
481
  For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
@@ -523,25 +556,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
523
556
  - [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
524
557
  - [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
525
558
  - [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
526
- - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
527
- - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
528
- - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
529
- - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
559
+ - [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
560
+ - [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
561
+ - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
562
+ - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
530
563
 
531
- #### Advanced concepts
564
+ ### Advanced concepts
565
+
566
+ <table>
567
+ <tr>
568
+ <th>Data & Knowledge Management</th>
569
+ <th>Pipeline Control</th>
570
+ </tr>
571
+ <tr>
572
+ <td>
573
+ <ul>
574
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
575
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
576
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
577
+ </ul>
578
+ </td>
579
+ <td>
580
+ <ul>
581
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
582
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
583
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
584
+ </ul>
585
+ </td>
586
+ </tr>
587
+ <tr>
588
+ <th>Language & Output Control</th>
589
+ <th>Advanced Generation</th>
590
+ </tr>
591
+ <tr>
592
+ <td>
593
+ <ul>
594
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
595
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
596
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
597
+ </ul>
598
+ </td>
599
+ <td>
600
+ <ul>
601
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
602
+ <li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
603
+ </ul>
604
+ </td>
605
+ </tr>
606
+ </table>
532
607
 
533
- - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
534
- - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
535
- - [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
536
- - [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
537
- - [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
538
- - [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
539
- - [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
540
- - [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
541
- - [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
542
- - [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
543
- - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
544
- - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
608
+ <p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
545
609
 
546
610
 
547
611
 
@@ -596,36 +660,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
596
660
  - [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
597
661
  - [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
598
662
 
599
- ## Changelog
663
+ ## 📅 Changelog
600
664
 
601
665
  See [CHANGELOG.md](./CHANGELOG.md)
602
666
 
603
667
  ## 📜 License
604
668
 
605
- Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
669
+ This project is licensed under [BUSL 1.1](./LICENSE.md).
606
670
 
607
- ## 🎯 Todos
671
+ ## 🤝 Contributing
608
672
 
609
- See [TODO.md](./TODO.md)
673
+ We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
610
674
 
611
- ## 🤝 Partners
612
-
613
- <div style="display: flex; align-items: center; gap: 20px;">
614
-
615
- <a href="https://promptbook.studio/">
616
- <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
617
- </a>
618
-
619
- <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
620
- <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
621
- </a>
622
-
623
- </div>
675
+ You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).We are open to [pull requests, feedback, and suggestions](./CONTRIBUTING.md).
624
676
 
625
- ## 🖋️ Contributing
677
+ ## 🆘 Support & Community
626
678
 
627
- You can also star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).We are open to [pull requests, feedback, and suggestions](./CONTRIBUTING.md).
679
+ Need help with Book language? We're here for you!
628
680
 
629
- ## 📞 Support
681
+ - 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
682
+ - 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
683
+ - 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
684
+ - 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
685
+ - 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
630
686
 
631
- If you need help or have questions, please check our [Support Resources](./SUPPORT.md).
687
+ We welcome contributions and feedback to make Book language better for everyone!
package/esm/index.es.js CHANGED
@@ -18,7 +18,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
18
18
  * @generated
19
19
  * @see https://github.com/webgptorg/promptbook
20
20
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0';
21
+ const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
22
22
  /**
23
23
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
24
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.92.0-35`).
18
+ * It follows semantic versioning (e.g., `0.92.0`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@promptbook/openai",
3
- "version": "0.92.0",
4
- "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
3
+ "version": "0.93.0",
4
+ "description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "repository": {
@@ -63,7 +63,7 @@
63
63
  "module": "./esm/index.es.js",
64
64
  "typings": "./esm/typings/src/_packages/openai.index.d.ts",
65
65
  "peerDependencies": {
66
- "@promptbook/core": "0.92.0"
66
+ "@promptbook/core": "0.93.0"
67
67
  },
68
68
  "dependencies": {
69
69
  "bottleneck": "^2.19.5",
package/umd/index.umd.js CHANGED
@@ -25,7 +25,7 @@
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name