@saltcorn/large-language-model 0.5.1 → 0.5.2

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 +10 -1
  2. package/package.json +1 -1
package/generate.js CHANGED
@@ -120,7 +120,16 @@ const getCompletion = async (config, opts) => {
120
120
 
121
121
  const getCompletionOpenAICompatible = async (
122
122
  { chatCompleteEndpoint, bearer, apiKey, model },
123
- { systemPrompt, prompt, temperature, debugResult, chat = [], ...rest }
123
+ {
124
+ systemPrompt,
125
+ prompt,
126
+ temperature,
127
+ debugResult,
128
+ chat = [],
129
+ api_key,
130
+ endpoint,
131
+ ...rest
132
+ }
124
133
  ) => {
125
134
  const headers = {
126
135
  "Content-Type": "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/large-language-model",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Large language models and functionality for Saltcorn",
5
5
  "main": "index.js",
6
6
  "dependencies": {