llaminate 0.1.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.
Files changed (72) hide show
  1. package/.gitattributes +2 -0
  2. package/LICENSE +21 -0
  3. package/README.md +95 -0
  4. package/assets/llaminate-256.webp +0 -0
  5. package/assets/llaminate.jpg +0 -0
  6. package/assets/llaminate.webp +0 -0
  7. package/dist/build-info.json +5 -0
  8. package/dist/config.schema.json +126 -0
  9. package/dist/llaminate.d.ts +202 -0
  10. package/dist/llaminate.min.js +9 -0
  11. package/dist/llaminate.min.js.map +1 -0
  12. package/dist/ratelimiter.d.ts +33 -0
  13. package/dist/ratelimiter.min.js +7 -0
  14. package/dist/ratelimiter.min.js.map +1 -0
  15. package/dist/system.hbs +3 -0
  16. package/docs/LICENSE +21 -0
  17. package/docs/Llaminate.html +1040 -0
  18. package/docs/Llaminate.module_Endpoints.html +278 -0
  19. package/docs/Llaminate.module_Llaminate.html +200 -0
  20. package/docs/Llaminate.module_MimeTypes.html +275 -0
  21. package/docs/LlaminateConfig.html +667 -0
  22. package/docs/LlaminateMessage.html +328 -0
  23. package/docs/LlaminateResponse.html +253 -0
  24. package/docs/assets/llaminate-256.webp +0 -0
  25. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  26. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  27. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  28. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  29. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  30. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  31. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  32. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  33. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  34. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  35. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  36. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  37. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  38. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  39. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  40. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  41. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  42. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  43. package/docs/index.html +142 -0
  44. package/docs/scripts/linenumber.js +25 -0
  45. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  46. package/docs/scripts/prettify/lang-css.js +2 -0
  47. package/docs/scripts/prettify/prettify.js +28 -0
  48. package/docs/styles/jsdoc-default.css +358 -0
  49. package/docs/styles/prettify-jsdoc.css +111 -0
  50. package/docs/styles/prettify-tomorrow.css +132 -0
  51. package/jsdoc.json +23 -0
  52. package/package.json +38 -0
  53. package/scripts/build.sh +21 -0
  54. package/scripts/docs.sh +28 -0
  55. package/scripts/prebuild.js +43 -0
  56. package/scripts/prepare.sh +11 -0
  57. package/scripts/pretest.js +14 -0
  58. package/src/config.schema.json +126 -0
  59. package/src/llaminate.d.ts +99 -0
  60. package/src/llaminate.ts +1326 -0
  61. package/src/llaminate.types.js +176 -0
  62. package/src/ratelimiter.ts +95 -0
  63. package/src/system.hbs +3 -0
  64. package/tests/attachments.test.js +66 -0
  65. package/tests/common/base64.js +13 -0
  66. package/tests/common/matches.js +69 -0
  67. package/tests/common/setup.js +45 -0
  68. package/tests/complete.test.js +27 -0
  69. package/tests/extensions/toMatchSchema.js +20 -0
  70. package/tests/history.test.js +86 -0
  71. package/tests/stream.test.js +67 -0
  72. package/tsconfig.json +12 -0
@@ -0,0 +1,278 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>: Module: Endpoints</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Module: Endpoints</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ </header>
32
+
33
+ <article>
34
+ <div class="container-overview">
35
+
36
+
37
+ <div class="description">Static properties for common LLM service endpoints, which
38
+ can be used in the Llaminate configuration.</div>
39
+
40
+
41
+
42
+
43
+
44
+ <h5 class="subsection-title">Properties:</h5>
45
+
46
+
47
+
48
+ <table class="props">
49
+ <thead>
50
+ <tr>
51
+
52
+ <th>Name</th>
53
+
54
+
55
+ <th>Type</th>
56
+
57
+
58
+
59
+
60
+
61
+ <th class="last">Description</th>
62
+ </tr>
63
+ </thead>
64
+
65
+ <tbody>
66
+
67
+
68
+ <tr>
69
+
70
+ <td class="name"><code>Llaminate.ANTHROPIC</code></td>
71
+
72
+
73
+ <td class="type">
74
+
75
+
76
+ <span class="param-type">string</span>
77
+
78
+
79
+
80
+ </td>
81
+
82
+
83
+
84
+
85
+
86
+ <td class="description last">Anthropic completions API endpoint.</td>
87
+ </tr>
88
+
89
+
90
+
91
+ <tr>
92
+
93
+ <td class="name"><code>Llaminate.DEEPSEEK</code></td>
94
+
95
+
96
+ <td class="type">
97
+
98
+
99
+ <span class="param-type">string</span>
100
+
101
+
102
+
103
+ </td>
104
+
105
+
106
+
107
+
108
+
109
+ <td class="description last">Deepseek completions API endpoint.</td>
110
+ </tr>
111
+
112
+
113
+
114
+ <tr>
115
+
116
+ <td class="name"><code>Llaminate.GOOGLE</code></td>
117
+
118
+
119
+ <td class="type">
120
+
121
+
122
+ <span class="param-type">string</span>
123
+
124
+
125
+
126
+ </td>
127
+
128
+
129
+
130
+
131
+
132
+ <td class="description last">Google completions API endpoint.</td>
133
+ </tr>
134
+
135
+
136
+
137
+ <tr>
138
+
139
+ <td class="name"><code>Llaminate.MISTRAL</code></td>
140
+
141
+
142
+ <td class="type">
143
+
144
+
145
+ <span class="param-type">string</span>
146
+
147
+
148
+
149
+ </td>
150
+
151
+
152
+
153
+
154
+
155
+ <td class="description last">Mistral completions API endpoint.</td>
156
+ </tr>
157
+
158
+
159
+
160
+ <tr>
161
+
162
+ <td class="name"><code>Llaminate.OPENAI</code></td>
163
+
164
+
165
+ <td class="type">
166
+
167
+
168
+ <span class="param-type">string</span>
169
+
170
+
171
+
172
+ </td>
173
+
174
+
175
+
176
+
177
+
178
+ <td class="description last">OpenAI completions API endpoint.</td>
179
+ </tr>
180
+
181
+
182
+ </tbody>
183
+ </table>
184
+
185
+
186
+
187
+
188
+ <dl class="details">
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+ </dl>
222
+
223
+
224
+
225
+ <h3>Example</h3>
226
+
227
+ <pre class="prettyprint"><code>const mistral = new Llaminate({
228
+ endpoint: Llaminate.MISTRAL,
229
+ key: "12345-abcde-67890-fghij-klm",
230
+ model: "mistral-small-latest"
231
+ });</code></pre>
232
+
233
+
234
+
235
+ </div>
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+ </article>
257
+
258
+ </section>
259
+
260
+
261
+
262
+
263
+ </div>
264
+
265
+ <nav>
266
+ <h4><a href="index.html">README.md</a></h4><h3>Modules</h3><ul><li><a href="Llaminate.module_Endpoints.html">Endpoints</a></li><li><a href="Llaminate.module_Llaminate.html">Llaminate</a></li><li><a href="Llaminate.module_MimeTypes.html">MimeTypes</a></li></ul><h3>Classes</h3><ul><li><a href="Llaminate.html">Llaminate</a></li></ul><h3>Interfaces</h3><ul><li><a href="LlaminateConfig.html">LlaminateConfig</a></li><li><a href="LlaminateMessage.html">LlaminateMessage</a></li><li><a href="LlaminateResponse.html">LlaminateResponse</a></li></ul>
267
+ </nav>
268
+
269
+ <br class="clear">
270
+
271
+ <footer>
272
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc"> 4.0.5</a>
273
+ </footer>
274
+
275
+ <script> prettyPrint(); </script>
276
+ <script src="scripts/linenumber.js"> </script>
277
+ </body>
278
+ </html>
@@ -0,0 +1,200 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>: Module: Llaminate</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Module: Llaminate</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ </header>
32
+
33
+ <article>
34
+ <div class="container-overview">
35
+
36
+
37
+ <div class="description">Static property for the Llaminate library version.</div>
38
+
39
+
40
+
41
+
42
+
43
+ <h5 class="subsection-title">Properties:</h5>
44
+
45
+
46
+
47
+ <table class="props">
48
+ <thead>
49
+ <tr>
50
+
51
+ <th>Name</th>
52
+
53
+
54
+ <th>Type</th>
55
+
56
+
57
+
58
+
59
+
60
+ <th class="last">Description</th>
61
+ </tr>
62
+ </thead>
63
+
64
+ <tbody>
65
+
66
+
67
+ <tr>
68
+
69
+ <td class="name"><code>Llaminate.USER_AGENT</code></td>
70
+
71
+
72
+ <td class="type">
73
+
74
+
75
+ <span class="param-type">string</span>
76
+
77
+
78
+
79
+ </td>
80
+
81
+
82
+
83
+
84
+
85
+ <td class="description last">The User-Agent string used in API
86
+ requests.</td>
87
+ </tr>
88
+
89
+
90
+
91
+ <tr>
92
+
93
+ <td class="name"><code>Llaminate.VERSION</code></td>
94
+
95
+
96
+ <td class="type">
97
+
98
+
99
+ <span class="param-type">string</span>
100
+
101
+
102
+
103
+ </td>
104
+
105
+
106
+
107
+
108
+
109
+ <td class="description last">The version of the Llaminate library.</td>
110
+ </tr>
111
+
112
+
113
+ </tbody>
114
+ </table>
115
+
116
+
117
+
118
+
119
+ <dl class="details">
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ </dl>
153
+
154
+
155
+
156
+
157
+ </div>
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ </article>
179
+
180
+ </section>
181
+
182
+
183
+
184
+
185
+ </div>
186
+
187
+ <nav>
188
+ <h4><a href="index.html">README.md</a></h4><h3>Modules</h3><ul><li><a href="Llaminate.module_Endpoints.html">Endpoints</a></li><li><a href="Llaminate.module_Llaminate.html">Llaminate</a></li><li><a href="Llaminate.module_MimeTypes.html">MimeTypes</a></li></ul><h3>Classes</h3><ul><li><a href="Llaminate.html">Llaminate</a></li></ul><h3>Interfaces</h3><ul><li><a href="LlaminateConfig.html">LlaminateConfig</a></li><li><a href="LlaminateMessage.html">LlaminateMessage</a></li><li><a href="LlaminateResponse.html">LlaminateResponse</a></li></ul>
189
+ </nav>
190
+
191
+ <br class="clear">
192
+
193
+ <footer>
194
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc"> 4.0.5</a>
195
+ </footer>
196
+
197
+ <script> prettyPrint(); </script>
198
+ <script src="scripts/linenumber.js"> </script>
199
+ </body>
200
+ </html>