promptgun 0.14.17 → 0.14.19
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 +14 -14
- package/build/index.d.ts +4 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,19 +3,6 @@
|
|
|
3
3
|
The simplest, most advanced LLM prompting library.
|
|
4
4
|
|
|
5
5
|
# How to use
|
|
6
|
-
### Text output – streamed
|
|
7
|
-
```typescript
|
|
8
|
-
const stream = ai.chat('How to make bread?')
|
|
9
|
-
let recipe = ''
|
|
10
|
-
for await (const chunk of stream) {
|
|
11
|
-
recipe += chunk
|
|
12
|
-
}
|
|
13
|
-
```
|
|
14
|
-
### Text output – single
|
|
15
|
-
```typescript
|
|
16
|
-
const fruit = await ai.chat('What company makes the iPhone?')
|
|
17
|
-
```
|
|
18
|
-
|
|
19
6
|
### Data output - streamed
|
|
20
7
|
Stream data-aware:
|
|
21
8
|
```typescript
|
|
@@ -64,6 +51,19 @@ const restaurants /* type: {name: string, address?: string}[] */ = await ai
|
|
|
64
51
|
)
|
|
65
52
|
```
|
|
66
53
|
|
|
54
|
+
### Text output – streamed
|
|
55
|
+
```typescript
|
|
56
|
+
const stream = ai.chat('How to make bread?')
|
|
57
|
+
let recipe = ''
|
|
58
|
+
for await (const chunk of stream) {
|
|
59
|
+
recipe += chunk
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
### Text output – single
|
|
63
|
+
```typescript
|
|
64
|
+
const fruit = await ai.chat('What company makes the iPhone?')
|
|
65
|
+
```
|
|
66
|
+
|
|
67
67
|
### Image out
|
|
68
68
|
```typescript
|
|
69
69
|
await ai
|
|
@@ -100,6 +100,6 @@ Get your PromptGrid API key for free at <a href="https://promptgrid.ai">PromptGr
|
|
|
100
100
|
Post at our [feedback and help board](https://promptgun.featurebase.app/dashboard/onboarding). We **love** to hear from you 👌☀️❤️.
|
|
101
101
|
|
|
102
102
|
## Terms of use
|
|
103
|
-
|
|
103
|
+
If you supply `promptGridApiKey`, which is completely optional, some metadata of your prompt code, including the code of the callback you provide to the "completeChat" clause of a Promptgun call and where you call your prompts in your code, will be saved to your PromptGrid account.
|
|
104
104
|
The content of individual prompt calls will not be stored in PromptGrid unless you opt in at <a href="https://promptgrid.ai/prompts">promptgrid.ai/prompts</a>.
|
|
105
105
|
You can delete any data stored on PromptGrid at any time.
|
package/build/index.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export declare const AiModel: {
|
|
|
128
128
|
*/
|
|
129
129
|
readonly gpt_4_0125_preview: "gpt-4-0125-preview";
|
|
130
130
|
/**
|
|
131
|
+
* "OpenAI model ID: gpt-4-0613"
|
|
131
132
|
* | Attribute | Rating | Value |
|
|
132
133
|
* |----------------|-----------------|----------------|
|
|
133
134
|
* | Intelligence | ○○○○ | High |
|
|
@@ -206,6 +207,7 @@ export declare const AiModel: {
|
|
|
206
207
|
*/
|
|
207
208
|
readonly gpt_4_1: "gpt-4.1";
|
|
208
209
|
/**
|
|
210
|
+
* "OpenAI model ID: gpt-4.1-2025-04-14"
|
|
209
211
|
* | Attribute | Rating | Value |
|
|
210
212
|
* |----------------|-----------------|----------------|
|
|
211
213
|
* | Intelligence | ○○○○ | High |
|
|
@@ -830,6 +832,7 @@ export declare const AiModel: {
|
|
|
830
832
|
*/
|
|
831
833
|
readonly o3_pro: "o3-pro";
|
|
832
834
|
/**
|
|
835
|
+
* "OpenAI model ID: o3-pro-2025-06-10"
|
|
833
836
|
* | Attribute | Rating | Value |
|
|
834
837
|
* |----------------|-----------------|----------------|
|
|
835
838
|
* | Intelligence | ? | ? |
|
|
@@ -843,6 +846,7 @@ export declare const AiModel: {
|
|
|
843
846
|
*/
|
|
844
847
|
readonly o3_pro_2025_06_10: "o3-pro-2025-06-10";
|
|
845
848
|
/**
|
|
849
|
+
* "OpenAI model ID: o4-mini"
|
|
846
850
|
* | Attribute | Rating | Value |
|
|
847
851
|
* |----------------|-----------------|----------------|
|
|
848
852
|
* | Intelligence | ○○○ | Moderate |
|