hyperspace-sdk-ts 3.1.7 → 4.0.0

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.
Files changed (2) hide show
  1. package/dist/client.js +1 -1
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -835,7 +835,7 @@ class HyperspaceClient {
835
835
  'https://the.yar.ink/v1/embeddings',
836
836
  `http://${this.host.split(':')[0]}:8080/v1/embeddings`
837
837
  ];
838
- const apiKey = process.env.CDE_API_KEY || ((this.apiKey && this.apiKey.startsWith('sk_')) ? this.apiKey : '') || process.env.HYPERSPACE_API_KEY || '';
838
+ const apiKey = process.env.YAR_API_KEY || process.env.CDE_API_KEY || ((this.apiKey && this.apiKey.startsWith('sk_')) ? this.apiKey : '') || process.env.HYPERSPACE_API_KEY || '';
839
839
  for (const url of urls) {
840
840
  try {
841
841
  const res = await fetch(url, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperspace-sdk-ts",
3
- "version": "3.1.7",
3
+ "version": "4.0.0",
4
4
  "description": "Official TypeScript SDK for HyperspaceDB gRPC API",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",