openlayer 0.1.14 → 0.1.15
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 +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,6 +26,10 @@ Install with npm
|
|
|
26
26
|
npm i openlayer
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
[Example usage available in our docs](https://docs.openlayer.com/quickstarts/llm-quickstart)
|
|
32
|
+
|
|
29
33
|
## Documentation
|
|
30
34
|
|
|
31
35
|
The official documentation for this library can be found [here](https://docs.openlayer.com).
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export interface StreamingData {
|
|
|
15
15
|
* The output string generated by the chat completion.
|
|
16
16
|
*/
|
|
17
17
|
output: string;
|
|
18
|
+
/**
|
|
19
|
+
* The full prompt history for the chat completion.
|
|
20
|
+
*/
|
|
21
|
+
prompt?: ChatCompletionMessageParam[];
|
|
18
22
|
/**
|
|
19
23
|
* A timestamp representing when the chat completion occurred. Optional.
|
|
20
24
|
*/
|
|
@@ -53,9 +57,9 @@ interface StreamingDataConfig {
|
|
|
53
57
|
*/
|
|
54
58
|
outputColumnName: string | null;
|
|
55
59
|
/**
|
|
56
|
-
* The
|
|
60
|
+
* The name of the column that stores the prompt template. Can be null.
|
|
57
61
|
*/
|
|
58
|
-
|
|
62
|
+
promptColumnName: string | null;
|
|
59
63
|
/**
|
|
60
64
|
* The name of the column that stores timestamp data. Can be null.
|
|
61
65
|
*/
|
package/dist/index.js
CHANGED