@demicodes/provider-grok-build 0.16.0 → 0.17.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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -14
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -909,7 +909,7 @@ function grokBuildFallbackModels(providerId = "grok-build") {
909
909
  contextWindow: 5e5,
910
910
  outputLimit: null,
911
911
  supportsTools: true,
912
- supportsAttachments: capabilitiesForModel("grok-4.5").supportsAttachments,
912
+ supportsAttachments: true,
913
913
  supportsReasoning: true,
914
914
  supportedThinkingEfforts: [
915
915
  "low",
@@ -972,7 +972,7 @@ function modelListFromGrokModelsPayload(payload, providerId) {
972
972
  contextWindow: positiveOrDefault(numberOrNull(item.context_window), 2e5),
973
973
  outputLimit: null,
974
974
  supportsTools: true,
975
- supportsAttachments: capabilitiesForModel(id).supportsAttachments,
975
+ supportsAttachments: true,
976
976
  supportsReasoning: item.supports_reasoning_effort === true || reasoningEfforts.length > 0 ? true : null,
977
977
  supportedThinkingEfforts: reasoningEfforts.length > 0 ? reasoningEfforts : null,
978
978
  defaultThinkingEffort: defaultReasoningEffort(item, reasoningEfforts),
@@ -993,18 +993,6 @@ function modelListFromGrokModelsPayload(payload, providerId) {
993
993
  stale: false
994
994
  };
995
995
  }
996
- const DEFAULT_MODEL_CAPABILITIES = { supportsAttachments: false };
997
- /**
998
- * Known Grok Build models. Extend this table when the proxy adds ids;
999
- * do not invent prefix heuristics here.
1000
- */
1001
- const KNOWN_MODEL_CAPABILITIES = {
1002
- "grok-4.5": { supportsAttachments: true },
1003
- "grok-composer-2.5-fast": { supportsAttachments: false }
1004
- };
1005
- function capabilitiesForModel(modelId) {
1006
- return KNOWN_MODEL_CAPABILITIES[modelId] ?? DEFAULT_MODEL_CAPABILITIES;
1007
- }
1008
996
  function modelsUrl(baseUrl) {
1009
997
  const normalized = normalizeBaseUrl(baseUrl);
1010
998
  return normalized.endsWith("/models") ? normalized : `${normalized}/models`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@demicodes/provider-grok-build",
3
3
  "description": "Grok Build provider adapter for Demi (reuses ~/.grok OAuth session).",
4
- "version": "0.16.0",
4
+ "version": "0.17.1",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {
@@ -11,9 +11,9 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@demicodes/core": "^0.16.0",
15
- "@demicodes/provider": "^0.16.0",
16
- "@demicodes/utils": "^0.16.0"
14
+ "@demicodes/core": "^0.17.1",
15
+ "@demicodes/provider": "^0.17.1",
16
+ "@demicodes/utils": "^0.17.1"
17
17
  },
18
18
  "license": "Apache-2.0",
19
19
  "main": "./dist/index.mjs",