@saltcorn/large-language-model 0.5.0 → 0.5.1

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 +9 -1
  2. package/package.json +1 -1
package/generate.js CHANGED
@@ -142,7 +142,15 @@ const getCompletionOpenAICompatible = async (
142
142
  temperature: temperature || 0.7,
143
143
  ...rest,
144
144
  };
145
- if (debugResult) console.log("OpenAI request", JSON.stringify(body, null, 2));
145
+ if (debugResult)
146
+ console.log(
147
+ "OpenAI request",
148
+ JSON.stringify(body, null, 2),
149
+ "to",
150
+ chatCompleteEndpoint,
151
+ "headers",
152
+ JSON.stringify(headers)
153
+ );
146
154
  const rawResponse = await fetch(chatCompleteEndpoint, {
147
155
  method: "POST",
148
156
  headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/large-language-model",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Large language models and functionality for Saltcorn",
5
5
  "main": "index.js",
6
6
  "dependencies": {