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 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 full prompt history for the chat completion.
60
+ * The name of the column that stores the prompt template. Can be null.
57
61
  */
58
- prompt?: ChatCompletionMessageParam[];
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
@@ -33,6 +33,7 @@ class OpenlayerClient {
33
33
  latencyColumnName: 'latency',
34
34
  numOfTokenColumnName: 'tokens',
35
35
  outputColumnName: 'output',
36
+ promptColumnName: 'prompt',
36
37
  timestampColumnName: 'timestamp',
37
38
  };
38
39
  this.openlayerServerUrl = 'https://api.openlayer.com/v1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openlayer",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "The Openlayer TypeScript client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",