dsh-any-deepseek 0.0.3 → 0.0.4

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/lib/index.js +6 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -926,6 +926,11 @@ var AnyDeepSeekAdapter = class extends LlmAdapter {
926
926
  }
927
927
  async resolveModel(provider, model, _signal) {
928
928
  const channel = this.selected();
929
+ const efforts = Object.keys(channel?.reasoningEfforts ?? {});
930
+ const reasoning = efforts.length === 0 ? {} : { reasoning: { efforts: efforts.map((id) => ({
931
+ id: ReasoningEffortId(id),
932
+ name: id
933
+ })) } };
929
934
  return {
930
935
  provider,
931
936
  id: model,
@@ -933,10 +938,7 @@ var AnyDeepSeekAdapter = class extends LlmAdapter {
933
938
  description: channel === void 0 ? void 0 : `via ${channel.label}`,
934
939
  context: { contextWindow: channel?.contextWindow ?? 1e6 },
935
940
  defaultMaxTokens: channel?.maxTokens,
936
- ...channel?.reasoningEfforts === void 0 ? {} : { reasoning: { efforts: Object.keys(channel.reasoningEfforts).map((id) => ({
937
- id: ReasoningEffortId(id),
938
- name: id
939
- })) } }
941
+ ...reasoning
940
942
  };
941
943
  }
942
944
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-any-deepseek",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "One DeepSeek V4.1 Flash provider for DeepSeek Harness: paste a key per channel, switch channels manually, token usage booked per real upstream.",
5
5
  "license": "MIT",
6
6
  "repository": {