zudello-integration-sdk 1.0.9 → 1.0.10

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/package.json +1 -1
  2. package/src/sdk/Zudello.js +12 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudello-integration-sdk",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Zudello Integrations SDK",
5
5
  "main": "./src/index.js",
6
6
  "repository": {
@@ -172,12 +172,19 @@ class ZudelloSDK extends BaseSDK {
172
172
  return this.responseHandler.error(validateIsEmpty.errors);
173
173
  }
174
174
 
175
- return await axios.post("https://openrouter.ai/api/v1/chat/completions", body, {
176
- headers: {
177
- Authorization: `Bearer ${key}`,
178
- "Content-Type": "application/json",
175
+ return await axios.post(
176
+ "https://openrouter.ai/api/v1/chat/completions",
177
+ {
178
+ model,
179
+ messages,
179
180
  },
180
- });
181
+ {
182
+ headers: {
183
+ Authorization: `Bearer ${key}`,
184
+ "Content-Type": "application/json",
185
+ },
186
+ }
187
+ );
181
188
  }
182
189
 
183
190
  async update({