chromadb 3.0.2 → 3.0.3

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.
@@ -1793,8 +1793,8 @@ var ChromaClient = class {
1793
1793
  if (!headers) {
1794
1794
  headers = {};
1795
1795
  }
1796
- if (!headers["x-chroma-token"] && headers["X_CHROMA_TOKEN"] && headers.credentials) {
1797
- headers["x-chroma-token"] = headers.credentials;
1796
+ if (!headers["x-chroma-token"] && args.auth.tokenHeaderType === "X_CHROMA_TOKEN" && args.auth.credentials) {
1797
+ headers["x-chroma-token"] = args.auth.credentials;
1798
1798
  }
1799
1799
  }
1800
1800
  const baseUrl = `${ssl ? "https" : "http"}://${host}:${port}`;
package/dist/chromadb.mjs CHANGED
@@ -1793,8 +1793,8 @@ var ChromaClient = class {
1793
1793
  if (!headers) {
1794
1794
  headers = {};
1795
1795
  }
1796
- if (!headers["x-chroma-token"] && headers["X_CHROMA_TOKEN"] && headers.credentials) {
1797
- headers["x-chroma-token"] = headers.credentials;
1796
+ if (!headers["x-chroma-token"] && args.auth.tokenHeaderType === "X_CHROMA_TOKEN" && args.auth.credentials) {
1797
+ headers["x-chroma-token"] = args.auth.credentials;
1798
1798
  }
1799
1799
  }
1800
1800
  const baseUrl = `${ssl ? "https" : "http"}://${host}:${port}`;