@anvaka/vue-llm 0.4.0 → 0.4.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.
@@ -1,5 +1,5 @@
1
1
  import { BaseProvider as g } from "./BaseProvider.js";
2
- class b extends g {
2
+ class C extends g {
3
3
  async detectCapabilities() {
4
4
  var t, e, o, s;
5
5
  ((t = this.config.model) != null && t.includes("claude-3") || (e = this.config.model) != null && e.includes("claude-sonnet") || (o = this.config.model) != null && o.includes("claude-opus") || (s = this.config.model) != null && s.includes("claude-haiku")) && (this.capabilities.add("vision"), this.capabilities.add("tools"));
@@ -107,7 +107,8 @@ class b extends g {
107
107
  }
108
108
  }
109
109
  function _(n) {
110
- return /claude-opus-4-[789]/.test(n);
110
+ const t = n;
111
+ return /claude-opus-4-[789]/.test(t) || /claude-(sonnet|opus|haiku|fable)-5(?!\d)/.test(t);
111
112
  }
112
113
  function h(n) {
113
114
  if (!n) return null;
@@ -195,7 +196,7 @@ function A(n) {
195
196
  return n;
196
197
  }
197
198
  export {
198
- b as AnthropicProvider,
199
+ C as AnthropicProvider,
199
200
  f as normalizeAnthropicUsage,
200
201
  _ as samplingParamsRemoved
201
202
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvaka/vue-llm",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Browser-only LLM client with provider adapters and Vue 3 components",
5
5
  "type": "module",
6
6
  "license": "MIT",