@proxysoul/soulforge 2.20.0 → 2.20.1
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/dist/index.js +16 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71927,7 +71927,7 @@ var package_default;
|
|
|
71927
71927
|
var init_package = __esm(() => {
|
|
71928
71928
|
package_default = {
|
|
71929
71929
|
name: "@proxysoul/soulforge",
|
|
71930
|
-
version: "2.20.
|
|
71930
|
+
version: "2.20.1",
|
|
71931
71931
|
description: "Graph-powered code intelligence \u2014 multi-agent coding with codebase-aware AI",
|
|
71932
71932
|
repository: {
|
|
71933
71933
|
type: "git",
|
|
@@ -72459,6 +72459,12 @@ function getCompatReasoningBody(modelId, config2) {
|
|
|
72459
72459
|
return { reasoning_effort: "default" };
|
|
72460
72460
|
}
|
|
72461
72461
|
const isDashscope = /qwen|glm-|kimi-/.test(base);
|
|
72462
|
+
if (provider === "llmgateway") {
|
|
72463
|
+
const body3 = { reasoning_effort: effort };
|
|
72464
|
+
if (isDashscope)
|
|
72465
|
+
body3.enable_thinking = true;
|
|
72466
|
+
return body3;
|
|
72467
|
+
}
|
|
72462
72468
|
const body2 = {
|
|
72463
72469
|
reasoning_effort: effort,
|
|
72464
72470
|
reasoning: { effort }
|
|
@@ -72480,7 +72486,8 @@ var init_compat_reasoning = __esm(() => {
|
|
|
72480
72486
|
"opencode-zen",
|
|
72481
72487
|
"lmstudio",
|
|
72482
72488
|
"ollama",
|
|
72483
|
-
"proxy"
|
|
72489
|
+
"proxy",
|
|
72490
|
+
"llmgateway"
|
|
72484
72491
|
]);
|
|
72485
72492
|
});
|
|
72486
72493
|
|
|
@@ -84918,7 +84925,9 @@ var init_context_windows = __esm(() => {
|
|
|
84918
84925
|
var llmgateway2;
|
|
84919
84926
|
var init_llmgateway = __esm(() => {
|
|
84920
84927
|
init_dist13();
|
|
84928
|
+
init_config2();
|
|
84921
84929
|
init_secrets();
|
|
84930
|
+
init_compat_reasoning();
|
|
84922
84931
|
init_context_windows();
|
|
84923
84932
|
llmgateway2 = {
|
|
84924
84933
|
id: "llmgateway",
|
|
@@ -84935,13 +84944,16 @@ var init_llmgateway = __esm(() => {
|
|
|
84935
84944
|
if (!apiKey) {
|
|
84936
84945
|
throw new Error("LLM_GATEWAY_API_KEY is not set");
|
|
84937
84946
|
}
|
|
84947
|
+
const reasoningBody = getCompatReasoningBody(`llmgateway/${modelId}`, loadConfig());
|
|
84948
|
+
const reasoningFetch = createReasoningFetchWrapper(reasoningBody);
|
|
84938
84949
|
const provider = createLLMGateway({
|
|
84939
84950
|
apiKey,
|
|
84940
84951
|
headers: {
|
|
84941
84952
|
"X-Source": "soulforge",
|
|
84942
84953
|
"HTTP-Referer": "https://soulforge.proxysoul.com",
|
|
84943
84954
|
"X-Title": "SoulForge"
|
|
84944
|
-
}
|
|
84955
|
+
},
|
|
84956
|
+
...reasoningFetch ? { fetch: reasoningFetch } : {}
|
|
84945
84957
|
});
|
|
84946
84958
|
return provider.chat(modelId);
|
|
84947
84959
|
},
|
|
@@ -508426,7 +508438,7 @@ var init_ProviderSettings = __esm(async () => {
|
|
|
508426
508438
|
COMPAT_ITEMS = [
|
|
508427
508439
|
{
|
|
508428
508440
|
type: "info",
|
|
508429
|
-
text: "Applies to: Groq \xB7 Fireworks \xB7 OpenCode Zen \xB7 OpenCode Go \xB7 LM Studio \xB7 Ollama \xB7 Copilot \xB7 GitHub Models \xB7 MiniMax \xB7 Proxy (non-Claude lane)"
|
|
508441
|
+
text: "Applies to: Groq \xB7 Fireworks \xB7 OpenCode Zen \xB7 OpenCode Go \xB7 LM Studio \xB7 Ollama \xB7 Copilot \xB7 GitHub Models \xB7 MiniMax \xB7 Proxy \xB7 LLM Gateway (non-Claude lane)"
|
|
508430
508442
|
},
|
|
508431
508443
|
{ type: "section", label: "Shared effort" },
|
|
508432
508444
|
{
|