neoagent 2.4.2-beta.2 → 2.4.2-beta.3
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
376fa02eacafdcb41cb88d165edcb99a
|
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"c416acfeb8126e097f758c664aaa3da929e27d
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "2813237698" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|
|
@@ -133948,7 +133948,7 @@ r===$&&A.b()
|
|
|
133948
133948
|
o.push(A.j6(p,A.ja(!1,new A.a3(B.ut,A.dc(new A.cv(B.hr,new A.a7p(r,p),p),p,p),p),!1,B.I,!0),p,p,0,0,0,p))}r=!1
|
|
133949
133949
|
if(!s.ay)if(!s.ch){r=s.e
|
|
133950
133950
|
r===$&&A.b()
|
|
133951
|
-
r=B.b.u("
|
|
133951
|
+
r=B.b.u("mq8ing93-f8b41aa").length!==0&&r.b}if(r){r=s.d
|
|
133952
133952
|
r===$&&A.b()
|
|
133953
133953
|
r=r.ar&&!r.aQ?84:0
|
|
133954
133954
|
q=s.e
|
|
@@ -139398,7 +139398,7 @@ $S:0}
|
|
|
139398
139398
|
A.ZM.prototype={}
|
|
139399
139399
|
A.Sw.prototype={
|
|
139400
139400
|
n7(a){var s=this
|
|
139401
|
-
if(B.b.u("
|
|
139401
|
+
if(B.b.u("mq8ing93-f8b41aa").length===0||s.a!=null)return
|
|
139402
139402
|
s.AN()
|
|
139403
139403
|
s.a=A.qi(B.Rf,new A.baz(s))},
|
|
139404
139404
|
AN(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f
|
|
@@ -139416,7 +139416,7 @@ if(!t.f.b(k)){s=1
|
|
|
139416
139416
|
break}i=J.a_(k,"buildId")
|
|
139417
139417
|
h=i==null?null:B.b.u(J.p(i))
|
|
139418
139418
|
j=h==null?"":h
|
|
139419
|
-
if(J.bf(j)===0||J.d(j,"
|
|
139419
|
+
if(J.bf(j)===0||J.d(j,"mq8ing93-f8b41aa")){s=1
|
|
139420
139420
|
break}n.b=!0
|
|
139421
139421
|
n.E()
|
|
139422
139422
|
p=2
|
|
@@ -139433,7 +139433,7 @@ case 2:return A.i(o.at(-1),r)}})
|
|
|
139433
139433
|
return A.k($async$AN,r)},
|
|
139434
139434
|
vu(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1
|
|
139435
139435
|
var $async$vu=A.h(function(a2,a3){if(a2===1){o.push(a3)
|
|
139436
|
-
s=p}for(;;)switch(s){case 0:if(B.b.u("
|
|
139436
|
+
s=p}for(;;)switch(s){case 0:if(B.b.u("mq8ing93-f8b41aa").length===0||n.c){s=1
|
|
139437
139437
|
break}n.c=!0
|
|
139438
139438
|
n.E()
|
|
139439
139439
|
p=4
|
|
@@ -402,7 +402,7 @@ async function getSupportedModels(userId, agentId = null) {
|
|
|
402
402
|
|
|
403
403
|
// Ollama: dynamic list from local server
|
|
404
404
|
const ollama = providerById.get('ollama');
|
|
405
|
-
if (ollama?.
|
|
405
|
+
if (ollama?.available) {
|
|
406
406
|
const dynamicModels = await refreshDynamicModels(ollama.baseUrl);
|
|
407
407
|
for (const model of dynamicModels) {
|
|
408
408
|
if (!staticIds.has(model.id)) {
|
|
@@ -10,7 +10,10 @@ class OllamaProvider extends BaseProvider {
|
|
|
10
10
|
|
|
11
11
|
async listModels() {
|
|
12
12
|
try {
|
|
13
|
-
const
|
|
13
|
+
const controller = new AbortController();
|
|
14
|
+
const timer = setTimeout(() => controller.abort(), 5000);
|
|
15
|
+
const res = await fetch(`${this.baseUrl}/api/tags`, { signal: controller.signal });
|
|
16
|
+
clearTimeout(timer);
|
|
14
17
|
const data = await res.json();
|
|
15
18
|
this.models = (data.models || []).map(m => m.name);
|
|
16
19
|
return this.models;
|