@saltcorn/large-language-model 0.3.2 → 0.3.3

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 (2) hide show
  1. package/generate.js +2 -1
  2. package/package.json +1 -1
package/generate.js CHANGED
@@ -100,7 +100,7 @@ const getCompletion = async (config, opts) => {
100
100
 
101
101
  const getCompletionOpenAICompatible = async (
102
102
  { chatCompleteEndpoint, bearer, model },
103
- { systemPrompt, prompt, temperature, chat = [] }
103
+ { systemPrompt, prompt, temperature, chat = [], ...rest }
104
104
  ) => {
105
105
  const headers = {
106
106
  "Content-Type": "application/json",
@@ -119,6 +119,7 @@ const getCompletionOpenAICompatible = async (
119
119
  { role: "user", content: prompt },
120
120
  ],
121
121
  temperature: temperature || 0.7,
122
+ ...rest,
122
123
  };
123
124
  const rawResponse = await fetch(chatCompleteEndpoint, {
124
125
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/large-language-model",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Large language models and functionality for Saltcorn",
5
5
  "main": "index.js",
6
6
  "dependencies": {