edgee 0.1.6 → 0.1.7
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 +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.js +0 -4
- package/package.json +1 -1
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
|
|
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?: "
|
|
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
|
@@ -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
|
}
|