@promptbook/azure-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 +139 -83
- package/esm/index.es.js +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +3 -3
- package/umd/index.umd.js +1 -1
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
|
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
9
11
|
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
10
12
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
13
|
+
[](https://github.com/webgptorg/promptbook/actions)
|
|
14
|
+
[](https://coveralls.io/github/webgptorg/promptbook?branch=main)
|
|
11
15
|
[](https://github.com/webgptorg/promptbook/issues)
|
|
12
16
|
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
19
|
## 🌟 New Features
|
|
18
20
|
|
|
19
|
-
-
|
|
20
|
-
- 🐳
|
|
21
|
-
-
|
|
22
|
-
-
|
|
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
|
|
|
@@ -324,65 +326,92 @@ Hello world examples:
|
|
|
324
326
|
- [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
325
327
|
- [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
326
328
|
|
|
329
|
+
### 🌐 Community & Social Media
|
|
327
330
|
|
|
331
|
+
Join our growing community of developers and users:
|
|
328
332
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
333
|
+
<table>
|
|
334
|
+
<thead>
|
|
335
|
+
<tr>
|
|
336
|
+
<th>Platform</th>
|
|
337
|
+
<th>Description</th>
|
|
338
|
+
</tr>
|
|
339
|
+
</thead>
|
|
340
|
+
<tbody>
|
|
341
|
+
<tr>
|
|
342
|
+
<td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
|
|
343
|
+
<td>Join our active developer community for discussions and support</td>
|
|
344
|
+
</tr>
|
|
345
|
+
<tr>
|
|
346
|
+
<td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
|
|
347
|
+
<td>Technical discussions, feature requests, and community Q&A</td>
|
|
348
|
+
</tr>
|
|
349
|
+
<tr>
|
|
350
|
+
<td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
|
|
351
|
+
<td>Professional updates and industry insights</td>
|
|
352
|
+
</tr>
|
|
353
|
+
<tr>
|
|
354
|
+
<td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
|
|
355
|
+
<td>General announcements and community engagement</td>
|
|
356
|
+
</tr>
|
|
357
|
+
<tr>
|
|
358
|
+
<td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
|
|
359
|
+
<td>Official landing page with project information</td>
|
|
360
|
+
</tr>
|
|
361
|
+
</tbody>
|
|
362
|
+
</table>
|
|
348
363
|
|
|
364
|
+
### 🖼️ Product & Brand Channels
|
|
349
365
|
|
|
350
|
-
|
|
351
|
-
- [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
|
|
366
|
+
#### Promptbook.studio
|
|
352
367
|
|
|
353
|
-
|
|
368
|
+
<table>
|
|
369
|
+
<tbody>
|
|
370
|
+
<tr>
|
|
371
|
+
<td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
|
|
372
|
+
<td>Visual updates, UI showcases, and design inspiration</td>
|
|
373
|
+
</tr>
|
|
374
|
+
|
|
375
|
+
</tbody>
|
|
376
|
+
</table>
|
|
354
377
|
|
|
355
|
-
_/Sub-brand for images and graphics generated via Promptbook prompting/_
|
|
356
378
|
|
|
357
|
-
- [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
|
|
358
|
-
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
|
359
379
|
|
|
360
380
|
|
|
361
381
|
|
|
362
382
|
|
|
383
|
+
## 📘 Book Language Blueprint
|
|
363
384
|
|
|
385
|
+
_A concise, Markdown-based DSL for crafting AI workflows and automations._
|
|
364
386
|
|
|
365
|
-
|
|
387
|
+
---
|
|
366
388
|
|
|
389
|
+
### 📑 Table of Contents
|
|
367
390
|
|
|
391
|
+
- [Introduction](#introduction)
|
|
392
|
+
- [Example](#example)
|
|
393
|
+
- [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
|
|
394
|
+
- [2. Who: Personas](#2-who-personas)
|
|
395
|
+
- [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
|
|
396
|
+
- [General Principles](#general-principles)
|
|
368
397
|
|
|
369
|
-
|
|
398
|
+
### Introduction
|
|
370
399
|
|
|
371
|
-
Book is a language that
|
|
400
|
+
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.
|
|
372
401
|
|
|
373
402
|
### Example
|
|
374
403
|
|
|
375
|
-
```
|
|
376
|
-
# 🌟 My
|
|
404
|
+
```book
|
|
405
|
+
# 🌟 My First Book
|
|
377
406
|
|
|
378
407
|
- BOOK VERSION 1.0.0
|
|
379
408
|
- URL https://promptbook.studio/hello.book
|
|
380
409
|
- INPUT PARAMETER {topic}
|
|
381
410
|
- OUTPUT PARAMETER {article}
|
|
382
411
|
|
|
383
|
-
# Write an
|
|
412
|
+
# Write an Article
|
|
384
413
|
|
|
385
|
-
- PERSONA Jane, marketing specialist with prior experience in
|
|
414
|
+
- PERSONA Jane, marketing specialist with prior experience in tech and AI writing
|
|
386
415
|
- KNOWLEDGE https://wikipedia.org/
|
|
387
416
|
- KNOWLEDGE ./journalist-ethics.pdf
|
|
388
417
|
- EXPECT MIN 1 Sentence
|
|
@@ -390,20 +419,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
|
|
|
390
419
|
|
|
391
420
|
> Write an article about {topic}
|
|
392
421
|
|
|
393
|
-
|
|
422
|
+
→ {article}
|
|
394
423
|
```
|
|
395
424
|
|
|
396
425
|
Each part of the book defines one of 3 circles:
|
|
397
426
|
|
|
398
|
-
### **What:** Workflows, Tasks and Parameters
|
|
427
|
+
### **1. What:** Workflows, Tasks and Parameters
|
|
399
428
|
|
|
400
|
-
What work needs to be done. Each book defines a [workflow
|
|
429
|
+
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.
|
|
401
430
|
|
|
402
431
|
**Related commands:**
|
|
403
432
|
|
|
404
433
|
- [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
|
|
405
434
|
|
|
406
|
-
### **Who:** Personas
|
|
435
|
+
### **2. Who:** Personas
|
|
407
436
|
|
|
408
437
|
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.
|
|
409
438
|
|
|
@@ -417,7 +446,7 @@ Personas can have access to different knowledge, tools and actions. They can als
|
|
|
417
446
|
|
|
418
447
|
|
|
419
448
|
|
|
420
|
-
### **How:** Knowledge, Instruments and Actions
|
|
449
|
+
### **3. How:** Knowledge, Instruments and Actions
|
|
421
450
|
|
|
422
451
|
The resources used by the personas are used to do the work.
|
|
423
452
|
|
|
@@ -427,7 +456,7 @@ The resources used by the personas are used to do the work.
|
|
|
427
456
|
- [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.
|
|
428
457
|
- [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
|
|
429
458
|
|
|
430
|
-
### General
|
|
459
|
+
### General Principles
|
|
431
460
|
|
|
432
461
|
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.
|
|
433
462
|
|
|
@@ -441,6 +470,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
|
|
|
441
470
|
|
|
442
471
|
|
|
443
472
|
|
|
473
|
+
## 📚 Documentation
|
|
474
|
+
|
|
475
|
+
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
476
|
+
|
|
444
477
|
## 🔒 Security
|
|
445
478
|
|
|
446
479
|
For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
|
|
@@ -521,25 +554,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
|
|
|
521
554
|
- [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
|
|
522
555
|
- [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
|
|
523
556
|
- [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
|
|
524
|
-
- [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
|
|
525
|
-
- [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
|
|
526
|
-
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
|
|
527
|
-
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
|
|
557
|
+
- [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
|
|
558
|
+
- [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
|
|
559
|
+
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
|
|
560
|
+
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
|
|
528
561
|
|
|
529
|
-
|
|
562
|
+
### Advanced concepts
|
|
563
|
+
|
|
564
|
+
<table>
|
|
565
|
+
<tr>
|
|
566
|
+
<th>Data & Knowledge Management</th>
|
|
567
|
+
<th>Pipeline Control</th>
|
|
568
|
+
</tr>
|
|
569
|
+
<tr>
|
|
570
|
+
<td>
|
|
571
|
+
<ul>
|
|
572
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
|
|
573
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
|
|
574
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
|
|
575
|
+
</ul>
|
|
576
|
+
</td>
|
|
577
|
+
<td>
|
|
578
|
+
<ul>
|
|
579
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
|
|
580
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
|
|
581
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
|
|
582
|
+
</ul>
|
|
583
|
+
</td>
|
|
584
|
+
</tr>
|
|
585
|
+
<tr>
|
|
586
|
+
<th>Language & Output Control</th>
|
|
587
|
+
<th>Advanced Generation</th>
|
|
588
|
+
</tr>
|
|
589
|
+
<tr>
|
|
590
|
+
<td>
|
|
591
|
+
<ul>
|
|
592
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
|
|
593
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
|
|
594
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
|
|
595
|
+
</ul>
|
|
596
|
+
</td>
|
|
597
|
+
<td>
|
|
598
|
+
<ul>
|
|
599
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
|
|
600
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
|
|
601
|
+
</ul>
|
|
602
|
+
</td>
|
|
603
|
+
</tr>
|
|
604
|
+
</table>
|
|
530
605
|
|
|
531
|
-
|
|
532
|
-
- [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
|
|
533
|
-
- [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
|
|
534
|
-
- [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
|
|
535
|
-
- [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
|
|
536
|
-
- [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
|
|
537
|
-
- [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
|
|
538
|
-
- [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
|
|
539
|
-
- [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
|
|
540
|
-
- [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
|
|
541
|
-
- [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
|
|
542
|
-
- [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
|
|
606
|
+
<p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
|
|
543
607
|
|
|
544
608
|
|
|
545
609
|
|
|
@@ -594,36 +658,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
|
|
|
594
658
|
- [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
|
|
595
659
|
- [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
|
|
596
660
|
|
|
597
|
-
##
|
|
661
|
+
## 📅 Changelog
|
|
598
662
|
|
|
599
663
|
See [CHANGELOG.md](./CHANGELOG.md)
|
|
600
664
|
|
|
601
665
|
## 📜 License
|
|
602
666
|
|
|
603
|
-
|
|
667
|
+
This project is licensed under [BUSL 1.1](./LICENSE.md).
|
|
604
668
|
|
|
605
|
-
##
|
|
669
|
+
## 🤝 Contributing
|
|
606
670
|
|
|
607
|
-
See [
|
|
671
|
+
We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
|
608
672
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
<div style="display: flex; align-items: center; gap: 20px;">
|
|
612
|
-
|
|
613
|
-
<a href="https://promptbook.studio/">
|
|
614
|
-
<img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
|
|
615
|
-
</a>
|
|
616
|
-
|
|
617
|
-
<a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
|
|
618
|
-
<img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
|
|
619
|
-
</a>
|
|
620
|
-
|
|
621
|
-
</div>
|
|
673
|
+
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).
|
|
622
674
|
|
|
623
|
-
##
|
|
675
|
+
## 🆘 Support & Community
|
|
624
676
|
|
|
625
|
-
|
|
677
|
+
Need help with Book language? We're here for you!
|
|
626
678
|
|
|
627
|
-
|
|
679
|
+
- 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
|
|
680
|
+
- 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
|
|
681
|
+
- 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
|
|
682
|
+
- 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
|
|
683
|
+
- 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
|
|
628
684
|
|
|
629
|
-
|
|
685
|
+
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.
|
|
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
|
|
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/azure-openai",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
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/azure-openai.index.d.ts",
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@promptbook/core": "0.
|
|
66
|
+
"@promptbook/core": "0.93.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@azure/openai": "1.0.0-beta.12",
|
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
27
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|