@base44-preview/sdk 0.8.16-pr.71.1ba8bae → 0.8.16-pr.71.a6a0503

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.
@@ -16,7 +16,7 @@ export function createAgentsModule({ axios, getSocket, appId, serverUrl, token,
16
16
  return axios.post(`${baseURL}/conversations`, conversation);
17
17
  };
18
18
  const addMessage = async (conversation, message) => {
19
- return axios.post(`${baseURL}/conversations/${conversation.id}/messages`, { ...message, api_version: "v2" });
19
+ return axios.post(`${baseURL}/conversations/${conversation.id}/messages?api_version=v2`, message);
20
20
  };
21
21
  const subscribeToConversation = (conversationId, onUpdate) => {
22
22
  const room = `/agent-conversations/${conversationId}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.16-pr.71.1ba8bae",
3
+ "version": "0.8.16-pr.71.a6a0503",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",