@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.
- package/generate.js +10 -1
- 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
|
-
{
|
|
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",
|