llm_meta_widget 0.8.4 → 0.8.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a3adfcaccf5824c1c15fc457ee01716fa1df373d21f4734b68096ef08effed1
4
- data.tar.gz: 22c9d53cbfed853404279136f90da67410608c1f87d9a076c999813481965d9b
3
+ metadata.gz: 00faf07976c3996c8dde526d85ae14baaa012290453a15e0e16ec64862ad5c00
4
+ data.tar.gz: f645a3cfe67ca0d163b4a2d44059148950c573f125ad7f51638683acf9726276
5
5
  SHA512:
6
- metadata.gz: 96a6c2e40b6477807230de39d3eb02668353ec1c29d9155ff083d3e2afdd5149ce58a5199d2d912e1f311d87be3d6c4cd1c2c67d5f5c7e36f32b967a2b80f567
7
- data.tar.gz: ca5587496e4b076f9cb0215f61573d09f26a6068a8c0377b4bc4e542577223c94d0f87a9ac81fcb7d3afff484ed88df8aadec2038ec3b909e9e579527bdf82c2
6
+ metadata.gz: b6604c83be08505904da3397520fe67744b05f99bd07ccf146a9bdb6e86f8272bf0cd00cf290c2311e8c814ee5a078ad8730f05373c9325d20c28b7993d532d9
7
+ data.tar.gz: b9357df041a048abb2f1c72b069b9433f1da3d8c967a4bac1adc6f12ab7cffea88551800578dbabaf9ad81b5af21b0b2645c846bc622000f978eba3b1d993aa9
@@ -408,6 +408,13 @@ function boot(cfg) {
408
408
  (payload.llms || []).forEach(function(llm) {
409
409
  if (llm.family !== "ollama") return;
410
410
  (llm.available_models || []).forEach(function(m) {
411
+ // This widget exists to call tools — page actions and MCP. A model
412
+ // that declares no tool support fails hard the moment any tool is
413
+ // declared ("<model> does not support tools"), so offering it in the
414
+ // picker is a trap: the visitor picks it and the next turn errors.
415
+ // `=== false` on purpose — a hub that omits the field is older, not
416
+ // a claim of no support, and must keep working.
417
+ if (m.supports_tools === false) return;
411
418
  if (anyAllowedByAllowlist(m.value, MODEL_ALLOWLIST)) {
412
419
  flat.push({ value: m.value, label: m.label });
413
420
  }
@@ -3868,6 +3868,7 @@ function boot(cfg) {
3868
3868
  (payload.llms || []).forEach(function(llm) {
3869
3869
  if (llm.family !== "ollama") return;
3870
3870
  (llm.available_models || []).forEach(function(m) {
3871
+ if (m.supports_tools === false) return;
3871
3872
  if (anyAllowedByAllowlist(m.value, MODEL_ALLOWLIST)) {
3872
3873
  flat.push({ value: m.value, label: m.label });
3873
3874
  }
@@ -1,3 +1,3 @@
1
1
  module LlmMetaWidget
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm_meta_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jdkim