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