@omnikit-ai/sdk 2.0.8 → 2.0.9

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.mjs CHANGED
@@ -435,6 +435,14 @@ var LiveVoiceSessionImpl = class {
435
435
 
436
436
  // src/client.ts
437
437
  var LLM_MODEL_MAP = {
438
+ // Gemini 2.5 models
439
+ "gemini-2.5-flash-lite": "vertex_ai/gemini-2.5-flash-lite",
440
+ "gemini-2.5-flash": "vertex_ai/gemini-2.5-flash",
441
+ "gemini-2.5-pro": "vertex_ai/gemini-2.5-pro",
442
+ // Gemini 3 models
443
+ "gemini-3-flash": "vertex_ai/gemini-3-flash-preview",
444
+ "gemini-3-pro": "vertex_ai/gemini-3-pro-preview",
445
+ // Legacy aliases (for backward compatibility)
438
446
  "gemini-flash": "vertex_ai/gemini-2.5-flash",
439
447
  "gemini-pro": "vertex_ai/gemini-2.5-pro",
440
448
  "gemini-pro-3": "vertex_ai/gemini-3-pro-preview"
@@ -1209,6 +1217,12 @@ Example: await ${collectionName}.list({ limit: 100, sort: '-created_at' })`,
1209
1217
  } else if (client.userToken) {
1210
1218
  headers["Authorization"] = `Bearer ${client.userToken}`;
1211
1219
  }
1220
+ if ((normalizedName === "UploadFile" || normalizedName === "uploadFile") && params?.file instanceof File) {
1221
+ return client.handleFileUpload(params.file, servicePath, useServiceToken);
1222
+ }
1223
+ if ((normalizedName === "UploadPrivateFile" || normalizedName === "uploadPrivateFile") && params?.file instanceof File) {
1224
+ return client.handleFileUpload(params.file, servicePath, useServiceToken);
1225
+ }
1212
1226
  const fetchResponse = await fetch(
1213
1227
  `${client.baseUrl}/apps/${client.appId}/${servicePath}`,
1214
1228
  {