edgee 0.1.6 → 0.1.8

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/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2026 Edgee Cloud
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/dist/index.d.ts CHANGED
@@ -34,11 +34,7 @@ export interface InputObject {
34
34
  tools?: Tool[];
35
35
  tool_choice?: ToolChoice;
36
36
  tags?: string[];
37
- compression_model?: "agentic" | "claude" | "opencode" | "cursor" | "customer";
38
- compression_configuration?: {
39
- rate?: number;
40
- semantic_preservation_threshold?: number;
41
- };
37
+ compression_model?: "claude" | "opencode" | "cursor" | "customer";
42
38
  }
43
39
  export interface SendOptions {
44
40
  model: string;
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ export default class Edgee {
60
60
  if (!this.apiKey) {
61
61
  throw new Error("EDGEE_API_KEY is not set");
62
62
  }
63
- this.baseUrl = baseUrl || process.env.EDGEE_BASE_URL || "https://api.edgee.ai";
63
+ this.baseUrl = baseUrl || process.env.EDGEE_BASE_URL || "https://edgee.io";
64
64
  }
65
65
  async send(options) {
66
66
  const { input } = options;
@@ -79,8 +79,6 @@ export default class Edgee {
79
79
  body.tags = input.tags;
80
80
  if (input.compression_model)
81
81
  body.compression_model = input.compression_model;
82
- if (input.compression_configuration)
83
- body.compression_configuration = input.compression_configuration;
84
82
  }
85
83
  const res = await fetch(`${this.baseUrl}/v1/chat/completions`, {
86
84
  method: "POST",
@@ -160,8 +158,6 @@ export default class Edgee {
160
158
  body.tags = input.tags;
161
159
  if (input.compression_model)
162
160
  body.compression_model = input.compression_model;
163
- if (input.compression_configuration)
164
- body.compression_configuration = input.compression_configuration;
165
161
  }
166
162
  yield* this._handleStreamingResponse(`${this.baseUrl}/v1/chat/completions`, body);
167
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgee",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",