neoagent 2.4.1-beta.38 → 2.4.1-beta.39

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,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.4.1-beta.38",
3
+ "version": "2.4.1-beta.39",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "server/index.js",
@@ -1 +1 @@
1
- 36f9d961cabc8d433b6d33a95164922c
1
+ 1636c605494dd3c6974f0d4eab186b24
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"c416acfeb8126e097f758c664aaa3da929e27d
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "434669552" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "2734177113" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });
@@ -134211,7 +134211,7 @@ r===$&&A.b()
134211
134211
  o.push(A.jR(p,A.jd(!1,new A.a4(B.uo,A.dr(new A.cy(B.hq,new A.a7x(r,p),p),p,p),p),!1,B.H,!0),p,p,0,0,0,p))}r=!1
134212
134212
  if(!s.ay)if(!s.ch){r=s.e
134213
134213
  r===$&&A.b()
134214
- r=B.b.t("mq47cfi3-d4fd3f4").length!==0&&r.b}if(r){r=s.d
134214
+ r=B.b.t("mq47upa5-1fc5165").length!==0&&r.b}if(r){r=s.d
134215
134215
  r===$&&A.b()
134216
134216
  r=r.av&&!r.aQ?84:0
134217
134217
  q=s.e
@@ -139705,7 +139705,7 @@ $S:0}
139705
139705
  A.ZT.prototype={}
139706
139706
  A.Sy.prototype={
139707
139707
  nc(a){var s=this
139708
- if(B.b.t("mq47cfi3-d4fd3f4").length===0||s.a!=null)return
139708
+ if(B.b.t("mq47upa5-1fc5165").length===0||s.a!=null)return
139709
139709
  s.AR()
139710
139710
  s.a=A.qh(B.Rc,new A.bag(s))},
139711
139711
  AR(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f
@@ -139723,7 +139723,7 @@ if(!t.f.b(k)){s=1
139723
139723
  break}i=J.T(k,"buildId")
139724
139724
  h=i==null?null:B.b.t(J.p(i))
139725
139725
  j=h==null?"":h
139726
- if(J.bf(j)===0||J.d(j,"mq47cfi3-d4fd3f4")){s=1
139726
+ if(J.bf(j)===0||J.d(j,"mq47upa5-1fc5165")){s=1
139727
139727
  break}n.b=!0
139728
139728
  n.D()
139729
139729
  p=2
@@ -139740,7 +139740,7 @@ case 2:return A.i(o.at(-1),r)}})
139740
139740
  return A.k($async$AR,r)},
139741
139741
  vy(){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
139742
139742
  var $async$vy=A.h(function(a2,a3){if(a2===1){o.push(a3)
139743
- s=p}for(;;)switch(s){case 0:if(B.b.t("mq47cfi3-d4fd3f4").length===0||n.c){s=1
139743
+ s=p}for(;;)switch(s){case 0:if(B.b.t("mq47upa5-1fc5165").length===0||n.c){s=1
139744
139744
  break}n.c=!0
139745
139745
  n.D()
139746
139746
  p=4
@@ -84,12 +84,25 @@ class OllamaProvider extends BaseProvider {
84
84
  buildChatBody(messages, tools, options, stream) {
85
85
  const body = {
86
86
  model: options.model || this.config.model || 'llama3.1',
87
- messages: messages.map(m => ({
88
- role: m.role,
89
- content: m.content || '',
90
- ...(m.tool_calls ? { tool_calls: m.tool_calls } : {}),
91
- ...(m.tool_call_id ? { tool_call_id: m.tool_call_id } : {})
92
- })),
87
+ messages: messages.map(m => {
88
+ const msg = {
89
+ role: m.role,
90
+ content: m.content || '',
91
+ ...(m.tool_call_id ? { tool_call_id: m.tool_call_id } : {})
92
+ };
93
+ if (m.tool_calls) {
94
+ msg.tool_calls = m.tool_calls.map(tc => ({
95
+ ...tc,
96
+ function: {
97
+ ...tc.function,
98
+ arguments: typeof tc.function.arguments === 'string'
99
+ ? (function() { try { return JSON.parse(tc.function.arguments || '{}'); } catch(e) { return {}; } })()
100
+ : tc.function.arguments
101
+ }
102
+ }));
103
+ }
104
+ return msg;
105
+ }),
93
106
  stream,
94
107
  options: {
95
108
  temperature: options.temperature ?? 0.7,