@kesarcloud/omega-plus-cli 2.0.2 → 2.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.
- package/package.json +1 -1
- package/src/config-writers.mjs +12 -1
- package/src/constants.mjs +3 -1
package/package.json
CHANGED
package/src/config-writers.mjs
CHANGED
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
DEFAULT_FAST_MODEL,
|
|
5
5
|
DEFAULT_MODEL,
|
|
6
6
|
OMEGA_MODELS,
|
|
7
|
+
OMEGA_CONTEXT_WINDOW,
|
|
8
|
+
OMEGA_MAX_OUTPUT_TOKENS,
|
|
7
9
|
} from "./constants.mjs";
|
|
8
10
|
import {
|
|
9
11
|
deriveEndpointOptions,
|
|
@@ -63,6 +65,7 @@ async function configureClaude(input) {
|
|
|
63
65
|
ANTHROPIC_BASE_URL: options.anthropicBaseUrl,
|
|
64
66
|
ANTHROPIC_MODEL: options.model,
|
|
65
67
|
ANTHROPIC_SMALL_FAST_MODEL: options.fastModel,
|
|
68
|
+
CLAUDE_CODE_MAX_OUTPUT_TOKENS: String(OMEGA_MAX_OUTPUT_TOKENS),
|
|
66
69
|
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1",
|
|
67
70
|
},
|
|
68
71
|
hasCompletedOnboarding: true,
|
|
@@ -86,6 +89,8 @@ async function configureCodex(input) {
|
|
|
86
89
|
base_url: normalizeCodexBaseUrl(options.openaiBaseUrl),
|
|
87
90
|
wire_api: "chat",
|
|
88
91
|
env_key: "OPENAI_API_KEY",
|
|
92
|
+
max_context_tokens: OMEGA_CONTEXT_WINDOW,
|
|
93
|
+
max_output_tokens: OMEGA_MAX_OUTPUT_TOKENS,
|
|
89
94
|
};
|
|
90
95
|
delete parsed._sections["model_providers.omega"];
|
|
91
96
|
delete parsed._sections["model_providers.omniroute"];
|
|
@@ -115,6 +120,8 @@ function buildOpenCodeProvider(options) {
|
|
|
115
120
|
options: {
|
|
116
121
|
baseURL: options.anthropicBaseUrl,
|
|
117
122
|
apiKey: options.apiKey,
|
|
123
|
+
maxTokens: OMEGA_MAX_OUTPUT_TOKENS,
|
|
124
|
+
contextWindow: OMEGA_CONTEXT_WINDOW,
|
|
118
125
|
},
|
|
119
126
|
models,
|
|
120
127
|
};
|
|
@@ -158,6 +165,8 @@ async function configureCline(input) {
|
|
|
158
165
|
anthropicBaseUrl: options.anthropicBaseUrl,
|
|
159
166
|
anthropicModelId: options.model,
|
|
160
167
|
planModeAnthropicModelId: options.model,
|
|
168
|
+
maxContextTokens: OMEGA_CONTEXT_WINDOW,
|
|
169
|
+
maxOutputTokens: OMEGA_MAX_OUTPUT_TOKENS,
|
|
161
170
|
};
|
|
162
171
|
|
|
163
172
|
const secrets = await readJson(paths.secrets, {});
|
|
@@ -183,6 +192,7 @@ async function configureKilo(input) {
|
|
|
183
192
|
apiKey: options.apiKey,
|
|
184
193
|
baseUrl: options.anthropicBaseUrl,
|
|
185
194
|
model: options.model,
|
|
195
|
+
maxTokens: OMEGA_MAX_OUTPUT_TOKENS,
|
|
186
196
|
};
|
|
187
197
|
|
|
188
198
|
const writes = [await writeJsonFile(paths.auth, auth, options)];
|
|
@@ -218,7 +228,8 @@ async function configureDroid(input) {
|
|
|
218
228
|
baseUrl: options.anthropicBaseUrl,
|
|
219
229
|
apiKey: options.apiKey,
|
|
220
230
|
displayName: "Omega V1 Pro",
|
|
221
|
-
maxOutputTokens:
|
|
231
|
+
maxOutputTokens: OMEGA_MAX_OUTPUT_TOKENS,
|
|
232
|
+
maxContextTokens: OMEGA_CONTEXT_WINDOW,
|
|
222
233
|
noImageSupport: false,
|
|
223
234
|
provider: "anthropic",
|
|
224
235
|
});
|
package/src/constants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const VERSION = "2.0.
|
|
1
|
+
export const VERSION = "2.0.3";
|
|
2
2
|
export const DEFAULT_ORIGIN = "https://omega.kesarcloud.in";
|
|
3
3
|
export const DEFAULT_BASE_URL = `${DEFAULT_ORIGIN}/v1`;
|
|
4
4
|
export const DEFAULT_ANTHROPIC_BASE_URL = `${DEFAULT_ORIGIN}/v1`;
|
|
@@ -6,6 +6,8 @@ export const DEFAULT_OPENAI_BASE_URL = `${DEFAULT_ORIGIN}/api/v1`;
|
|
|
6
6
|
export const DEFAULT_VALIDATION_URL = `${DEFAULT_ORIGIN}/api/omega/validate-key`;
|
|
7
7
|
export const DEFAULT_MODEL = "omega-v1-pro";
|
|
8
8
|
export const DEFAULT_FAST_MODEL = "omega-v1";
|
|
9
|
+
export const OMEGA_CONTEXT_WINDOW = 1_000_000;
|
|
10
|
+
export const OMEGA_MAX_OUTPUT_TOKENS = 32000;
|
|
9
11
|
|
|
10
12
|
export const OMEGA_MODELS = [
|
|
11
13
|
{ id: "omega-v1-pro", name: "Omega V1 Pro" },
|