@retrivora-ai/rag-engine 2.1.5 → 2.1.6

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.
@@ -5247,7 +5247,7 @@ var ConfigValidator = class {
5247
5247
  // package.json
5248
5248
  var package_default = {
5249
5249
  name: "@retrivora-ai/rag-engine",
5250
- version: "2.1.5",
5250
+ version: "2.1.6",
5251
5251
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
5252
5252
  author: "Abhinav Alkuchi",
5253
5253
  license: "UNLICENSED",
@@ -10949,10 +10949,8 @@ function createStreamHandler(configOrPlugin, options) {
10949
10949
  let body;
10950
10950
  try {
10951
10951
  if ((_a2 = req.headers.get("content-type")) == null ? void 0 : _a2.includes("multipart/form-data")) {
10952
- return new Response(JSON.stringify({ error: { code: "INVALID_ENDPOINT", message: "Multipart file upload requests must be sent to the /upload endpoint." } }), {
10953
- status: 400,
10954
- headers: { "Content-Type": "application/json" }
10955
- });
10952
+ const uploader = createUploadHandler(plugin, { onAuthorize });
10953
+ return uploader(req);
10956
10954
  }
10957
10955
  body = await req.json();
10958
10956
  } catch (e) {
@@ -5212,7 +5212,7 @@ var ConfigValidator = class {
5212
5212
  // package.json
5213
5213
  var package_default = {
5214
5214
  name: "@retrivora-ai/rag-engine",
5215
- version: "2.1.5",
5215
+ version: "2.1.6",
5216
5216
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
5217
5217
  author: "Abhinav Alkuchi",
5218
5218
  license: "UNLICENSED",
@@ -10914,10 +10914,8 @@ function createStreamHandler(configOrPlugin, options) {
10914
10914
  let body;
10915
10915
  try {
10916
10916
  if ((_a2 = req.headers.get("content-type")) == null ? void 0 : _a2.includes("multipart/form-data")) {
10917
- return new Response(JSON.stringify({ error: { code: "INVALID_ENDPOINT", message: "Multipart file upload requests must be sent to the /upload endpoint." } }), {
10918
- status: 400,
10919
- headers: { "Content-Type": "application/json" }
10920
- });
10917
+ const uploader = createUploadHandler(plugin, { onAuthorize });
10918
+ return uploader(req);
10921
10919
  }
10922
10920
  body = await req.json();
10923
10921
  } catch (e) {
package/dist/index.css CHANGED
@@ -2917,14 +2917,6 @@
2917
2917
  color: var(--color-amber-400);
2918
2918
  }
2919
2919
  }
2920
- .dark\:text-amber-400\/90 {
2921
- @media (prefers-color-scheme: dark) {
2922
- color: color-mix(in srgb, oklch(82.8% 0.189 84.429) 90%, transparent);
2923
- @supports (color: color-mix(in lab, red, red)) {
2924
- color: color-mix(in oklab, var(--color-amber-400) 90%, transparent);
2925
- }
2926
- }
2927
- }
2928
2920
  .dark\:text-blue-100 {
2929
2921
  @media (prefers-color-scheme: dark) {
2930
2922
  color: var(--color-blue-100);