@omnikit-ai/sdk 2.0.6 → 2.0.7
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/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1154,16 +1154,16 @@ Example: await ${collectionName}.list({ limit: 100, sort: '-created_at' })`,
|
|
|
1154
1154
|
response = await method(params, useServiceToken);
|
|
1155
1155
|
} else {
|
|
1156
1156
|
const servicePathMap = {
|
|
1157
|
-
"SendEmail": "email
|
|
1158
|
-
"InvokeLLM": "llm
|
|
1159
|
-
"GenerateImage": "
|
|
1160
|
-
"GenerateSpeech": "speech
|
|
1161
|
-
"GenerateVideo": "video
|
|
1162
|
-
"ExtractData": "extract
|
|
1163
|
-
"SendSMS": "sms
|
|
1164
|
-
"UploadFile": "
|
|
1165
|
-
"UploadPrivateFile": "
|
|
1166
|
-
"CreateFileSignedUrl": "
|
|
1157
|
+
"SendEmail": "services/email",
|
|
1158
|
+
"InvokeLLM": "services/llm",
|
|
1159
|
+
"GenerateImage": "services/images",
|
|
1160
|
+
"GenerateSpeech": "services/speech",
|
|
1161
|
+
"GenerateVideo": "services/video",
|
|
1162
|
+
"ExtractData": "services/extract-text",
|
|
1163
|
+
"SendSMS": "services/sms",
|
|
1164
|
+
"UploadFile": "services/files",
|
|
1165
|
+
"UploadPrivateFile": "services/files/private/init",
|
|
1166
|
+
"CreateFileSignedUrl": "services/files/signed-url"
|
|
1167
1167
|
};
|
|
1168
1168
|
const servicePath = servicePathMap[serviceName];
|
|
1169
1169
|
if (!servicePath) {
|
|
@@ -1182,7 +1182,7 @@ Example: await ${collectionName}.list({ limit: 100, sort: '-created_at' })`,
|
|
|
1182
1182
|
headers["Authorization"] = `Bearer ${client.userToken}`;
|
|
1183
1183
|
}
|
|
1184
1184
|
const fetchResponse = await fetch(
|
|
1185
|
-
`${client.baseUrl}/apps/${client.appId}
|
|
1185
|
+
`${client.baseUrl}/apps/${client.appId}/${servicePath}`,
|
|
1186
1186
|
{
|
|
1187
1187
|
method: "POST",
|
|
1188
1188
|
headers,
|