@nocobase/plugin-ai-gigachat 2.1.0-alpha.13 → 2.1.0-alpha.14
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/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client"),require("@nocobase/plugin-ai/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-ai-gigachat",["react","antd","@nocobase/client","@nocobase/utils/client","@nocobase/plugin-workflow/client","@nocobase/plugin-ai/client"],t):"object"==typeof exports?exports["@nocobase/plugin-ai-gigachat"]=t(require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client"),require("@nocobase/plugin-ai/client")):e["@nocobase/plugin-ai-gigachat"]=t(e.react,e.antd,e["@nocobase/client"],e["@nocobase/utils/client"],e["@nocobase/plugin-workflow/client"],e["@nocobase/plugin-ai/client"])}(self,function(e,t,n,o,r,i){return function(){"use strict";var a={342:function(e){e.exports=n},75:function(e){e.exports=i},990:function(e){e.exports=r},768:function(e){e.exports=o},59:function(e){e.exports=t},155:function(t){t.exports=e}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return a[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(l=u.g.location+"");var l,p=u.g.document;if(!l&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(l=p.currentScript.src),!l)){var s=p.getElementsByTagName("script");if(s.length)for(var f=s.length-1;f>-1&&(!l||!/^http(s?):/.test(l));)l=s[f--].src}if(!l)throw Error("Automatic publicPath is not supported in this browser");u.p=l.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var m={},b=window.__nocobase_public_path__||"";if(!b&&window.location&&window.location.pathname){var d=window.location.pathname||"/",y=d.indexOf("/v2/");b=y>=0?d.slice(0,y+1):"/"}return b&&(b=b.replace(/\/v2\/?$/,"/")),b||(b="/"),"/"!==b.charAt(b.length-1)&&(b+="/"),u.p=b+"static/plugins/@nocobase/plugin-ai-gigachat/dist/client/",!function(){u.r(m),u.d(m,{default:function(){return P},PluginAIGigaChatClient:function(){return w}});var e=u(342),t=u(155),n=u.n(t),o=u(768),r=JSON.parse('{"UU":"@nocobase/plugin-ai-gigachat"}'),i=r.UU,a=u(59),c=u(990),l=u(75),p=function(){var t,c=(t=(0,e.useApp)(),function(e){return t.i18n.t(e,{ns:[r.UU,"client"]})});return n().createElement("div",{style:{marginBottom:24}},n().createElement(a.Collapse,{bordered:!1,size:"small",items:[{key:"options",label:c("Options"),forceRender:!0,children:n().createElement(e.SchemaComponent,{schema:{type:"void",name:"deepseek",properties:{frequencyPenalty:{title:(0,o.tval)("Frequency penalty",{ns:i}),description:(0,o.tval)("Frequency penalty description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:0,"x-component-props":{step:.1,min:-2,max:2}},maxCompletionTokens:{title:(0,o.tval)("Max completion tokens",{ns:i}),description:(0,o.tval)("Max completion tokens description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:-1},presencePenalty:{title:(0,o.tval)("Presence penalty",{ns:i}),description:(0,o.tval)("Presence penalty description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:0,"x-component-props":{step:.1,min:-2,max:2}},temperature:{title:(0,o.tval)("Temperature",{ns:i}),description:(0,o.tval)("Temperature description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:.7,"x-component-props":{step:.1,min:0,max:1}},topP:{title:(0,o.tval)("Top P",{ns:i}),description:(0,o.tval)("Top P description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:1,"x-component-props":{step:.5,min:0,max:1}},responseFormat:{title:(0,o.tval)("Response format",{ns:i}),description:(0,o.tval)("Response format description",{ns:i}),type:"string","x-decorator":"FormItem","x-component":"Select",enum:[{label:c("Text"),value:"text"},{label:c("JSON"),value:"json_object"}],default:"text"},timeout:{title:(0,o.tval)("Timeout (ms)",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:6e4},maxRetries:{title:(0,o.tval)("Max retries",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:1}}}})}]}))},s={components:{ProviderSettingsForm:function(){return n().createElement(e.SchemaComponent,{schema:{type:"void",properties:{apiKey:{title:(0,o.tval)("Authorization key",{ns:i}),type:"string",required:!0,"x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope"},scope:{title:(0,o.tval)("Scope",{ns:i}),type:"string",required:!0,"x-decorator":"FormItem","x-component":"Select","x-component-props":{options:[{label:"GIGACHAT_API_PERS",value:"GIGACHAT_API_PERS"},{label:"GIGACHAT_API_B2B",value:"GIGACHAT_API_B2B"},{label:"GIGACHAT_API_CORP",value:"GIGACHAT_API_CORP"}]}},authURL:{title:(0,o.tval)("Auth URL",{ns:i}),type:"string","x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope"},enableSSL:{title:(0,o.tval)("Verify certificates",{ns:i}),type:"string","x-decorator":"FormItem","x-component":"Checkbox",default:!0}}}})},ModelSettingsForm:function(){return n().createElement(e.SchemaComponent,{components:{Options:p,WorkflowVariableRawTextArea:c.WorkflowVariableRawTextArea,ModelSelect:l.ModelSelect,Chat:l.Chat},schema:{type:"void",properties:{model:{title:(0,o.tval)("Model",{ns:i}),type:"string",required:!0,"x-decorator":"FormItem","x-component":"ModelSelect"},options:{type:"void","x-component":"Options"},chat:{type:"void","x-component":"Chat"}}}})}}};function f(e,t,n,o,r,i,a){try{var c=e[i](a),u=c.value}catch(e){n(e);return}c.done?t(u):Promise.resolve(u).then(o,r)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){f(i,o,r,a,c,"next",e)}function c(e){f(i,o,r,a,c,"throw",e)}a(void 0)})}}function d(e,t,n){return(d=g()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&v(r,n.prototype),r}).apply(null,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function x(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:u(0)}),c(a,"throw",{value:u(1)}),c(a,"return",{value:u(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function u(c){return function(u){var l=[c,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var w=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=y(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,g()?Reflect.construct(e,t||[],y(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&v(n,e),t=[{key:"afterAdd",value:function(){return b(function(){return x(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return b(function(){return x(this,function(e){return[2]})})()}},{key:"load",value:function(){return b(function(){return x(this,function(e){return this.aiPlugin.aiManager.registerLLMProvider("gigachat",s),[2]})}).call(this)}},{key:"aiPlugin",get:function(){return this.app.pm.get("ai")}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(h(e.Plugin)),P=w}(),m}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client"),require("@nocobase/plugin-ai/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-ai-gigachat",["react","antd","@nocobase/client","@nocobase/utils/client","@nocobase/plugin-workflow/client","@nocobase/plugin-ai/client"],t):"object"==typeof exports?exports["@nocobase/plugin-ai-gigachat"]=t(require("react"),require("antd"),require("@nocobase/client"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client"),require("@nocobase/plugin-ai/client")):e["@nocobase/plugin-ai-gigachat"]=t(e.react,e.antd,e["@nocobase/client"],e["@nocobase/utils/client"],e["@nocobase/plugin-workflow/client"],e["@nocobase/plugin-ai/client"])}(self,function(e,t,n,o,r,i){return function(){"use strict";var a={342:function(e){e.exports=n},75:function(e){e.exports=i},990:function(e){e.exports=r},768:function(e){e.exports=o},59:function(e){e.exports=t},155:function(t){t.exports=e}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return a[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(l=u.g.location+"");var l,p=u.g.document;if(!l&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(l=p.currentScript.src),!l)){var s=p.getElementsByTagName("script");if(s.length)for(var f=s.length-1;f>-1&&(!l||!/^http(s?):/.test(l));)l=s[f--].src}if(!l)throw Error("Automatic publicPath is not supported in this browser");u.p=l.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var m={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),e=n+"static/plugins/@nocobase/plugin-ai-gigachat/dist/client/")}if(!e){if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var o=window.location.pathname||"/",r=o.indexOf("/v2/");e=r>=0?o.slice(0,r+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-ai-gigachat/dist/client/"}u.p=e}(),!function(){u.r(m),u.d(m,{default:function(){return _},PluginAIGigaChatClient:function(){return w}});var e=u(342),t=u(155),n=u.n(t),o=u(768),r=JSON.parse('{"UU":"@nocobase/plugin-ai-gigachat"}'),i=r.UU,a=u(59),c=u(990),l=u(75),p=function(){var t,c=(t=(0,e.useApp)(),function(e){return t.i18n.t(e,{ns:[r.UU,"client"]})});return n().createElement("div",{style:{marginBottom:24}},n().createElement(a.Collapse,{bordered:!1,size:"small",items:[{key:"options",label:c("Options"),forceRender:!0,children:n().createElement(e.SchemaComponent,{schema:{type:"void",name:"deepseek",properties:{frequencyPenalty:{title:(0,o.tval)("Frequency penalty",{ns:i}),description:(0,o.tval)("Frequency penalty description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:0,"x-component-props":{step:.1,min:-2,max:2}},maxCompletionTokens:{title:(0,o.tval)("Max completion tokens",{ns:i}),description:(0,o.tval)("Max completion tokens description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:-1},presencePenalty:{title:(0,o.tval)("Presence penalty",{ns:i}),description:(0,o.tval)("Presence penalty description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:0,"x-component-props":{step:.1,min:-2,max:2}},temperature:{title:(0,o.tval)("Temperature",{ns:i}),description:(0,o.tval)("Temperature description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:.7,"x-component-props":{step:.1,min:0,max:1}},topP:{title:(0,o.tval)("Top P",{ns:i}),description:(0,o.tval)("Top P description",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:1,"x-component-props":{step:.5,min:0,max:1}},responseFormat:{title:(0,o.tval)("Response format",{ns:i}),description:(0,o.tval)("Response format description",{ns:i}),type:"string","x-decorator":"FormItem","x-component":"Select",enum:[{label:c("Text"),value:"text"},{label:c("JSON"),value:"json_object"}],default:"text"},timeout:{title:(0,o.tval)("Timeout (ms)",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:6e4},maxRetries:{title:(0,o.tval)("Max retries",{ns:i}),type:"number","x-decorator":"FormItem","x-component":"InputNumber",default:1}}}})}]}))},s={components:{ProviderSettingsForm:function(){return n().createElement(e.SchemaComponent,{schema:{type:"void",properties:{apiKey:{title:(0,o.tval)("Authorization key",{ns:i}),type:"string",required:!0,"x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope"},scope:{title:(0,o.tval)("Scope",{ns:i}),type:"string",required:!0,"x-decorator":"FormItem","x-component":"Select","x-component-props":{options:[{label:"GIGACHAT_API_PERS",value:"GIGACHAT_API_PERS"},{label:"GIGACHAT_API_B2B",value:"GIGACHAT_API_B2B"},{label:"GIGACHAT_API_CORP",value:"GIGACHAT_API_CORP"}]}},authURL:{title:(0,o.tval)("Auth URL",{ns:i}),type:"string","x-decorator":"FormItem","x-component":"TextAreaWithGlobalScope"},enableSSL:{title:(0,o.tval)("Verify certificates",{ns:i}),type:"string","x-decorator":"FormItem","x-component":"Checkbox",default:!0}}}})},ModelSettingsForm:function(){return n().createElement(e.SchemaComponent,{components:{Options:p,WorkflowVariableRawTextArea:c.WorkflowVariableRawTextArea,ModelSelect:l.ModelSelect,Chat:l.Chat},schema:{type:"void",properties:{model:{title:(0,o.tval)("Model",{ns:i}),type:"string",required:!0,"x-decorator":"FormItem","x-component":"ModelSelect"},options:{type:"void","x-component":"Options"},chat:{type:"void","x-component":"Chat"}}}})}}};function f(e,t,n,o,r,i,a){try{var c=e[i](a),u=c.value}catch(e){n(e);return}c.done?t(u):Promise.resolve(u).then(o,r)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){f(i,o,r,a,c,"next",e)}function c(e){f(i,o,r,a,c,"throw",e)}a(void 0)})}}function d(e,t,n){return(d=g()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&v(r,n.prototype),r}).apply(null,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)})(e)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function x(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(a,"next",{value:u(0)}),c(a,"throw",{value:u(1)}),c(a,"return",{value:u(2)}),"function"==typeof Symbol&&c(a,Symbol.iterator,{value:function(){return this}}),a;function u(c){return function(u){var l=[c,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var w=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=y(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,g()?Reflect.construct(e,t||[],y(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&v(n,e),t=[{key:"afterAdd",value:function(){return b(function(){return x(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return b(function(){return x(this,function(e){return[2]})})()}},{key:"load",value:function(){return b(function(){return x(this,function(e){return this.aiPlugin.aiManager.registerLLMProvider("gigachat",s),[2]})}).call(this)}},{key:"aiPlugin",get:function(){return this.app.pm.get("ai")}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(h(e.Plugin)),_=w}(),m}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
12
|
-
"@nocobase/plugin-ai": "2.1.0-alpha.
|
|
13
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
11
|
+
"@nocobase/client": "2.1.0-alpha.14",
|
|
12
|
+
"@nocobase/plugin-ai": "2.1.0-alpha.14",
|
|
13
|
+
"@nocobase/server": "2.1.0-alpha.14",
|
|
14
14
|
"react": "18.2.0",
|
|
15
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
15
|
+
"@nocobase/utils": "2.1.0-alpha.14",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
|
-
"@nocobase/plugin-workflow": "2.1.0-alpha.
|
|
17
|
+
"@nocobase/plugin-workflow": "2.1.0-alpha.14"
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"gigachat","version":"0.0.15","description":"The official TypeScript library for the GigaChat API","types":"./index.d.ts","main":"./index.js","type":"commonjs","repository":"github:ai-forever/gigachat-js","scripts":{"format":"prettier --write --cache --cache-strategy metadata . !dist","lint":"./scripts/lint","fix":"./scripts/format","build":"./scripts/build"},"private":false,"keywords":[],"author":"","license":"ISC","dependencies":{"axios":"^1.8.2","uuid":"^11.0.3"},"imports":{"gigachat":".","gigachat/*":"./src/*"},"exports":{".":{"require":{"types":"./index.d.ts","default":"./index.js"},"types":"./index.d.mts","default":"./index.mjs"},"./*.mjs":{"types":"./*.d.ts","default":"./*.mjs"},"./*.js":{"types":"./*.d.ts","default":"./*.js"},"./interfaces/*":{"types":"./interfaces/*.d.ts","require":"./interfaces/*.js","default":"./interfaces/*.mjs"},"./interfaces":{"types":"./interfaces/index.d.ts","require":"./interfaces/index.js","default":"./interfaces/index.mjs"},"./*":{"types":"./*.d.ts","require":"./*.js","default":"./*.mjs"}},"_lastModified":"2026-
|
|
1
|
+
{"name":"gigachat","version":"0.0.15","description":"The official TypeScript library for the GigaChat API","types":"./index.d.ts","main":"./index.js","type":"commonjs","repository":"github:ai-forever/gigachat-js","scripts":{"format":"prettier --write --cache --cache-strategy metadata . !dist","lint":"./scripts/lint","fix":"./scripts/format","build":"./scripts/build"},"private":false,"keywords":[],"author":"","license":"ISC","dependencies":{"axios":"^1.8.2","uuid":"^11.0.3"},"imports":{"gigachat":".","gigachat/*":"./src/*"},"exports":{".":{"require":{"types":"./index.d.ts","default":"./index.js"},"types":"./index.d.mts","default":"./index.mjs"},"./*.mjs":{"types":"./*.d.ts","default":"./*.mjs"},"./*.js":{"types":"./*.d.ts","default":"./*.js"},"./interfaces/*":{"types":"./interfaces/*.d.ts","require":"./interfaces/*.js","default":"./interfaces/*.mjs"},"./interfaces":{"types":"./interfaces/index.d.ts","require":"./interfaces/index.js","default":"./interfaces/index.mjs"},"./*":{"types":"./*.d.ts","require":"./*.js","default":"./*.mjs"}},"_lastModified":"2026-04-07T15:55:38.972Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"langchain-gigachat","version":"0.0.14","description":"GigaChat integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"https://github.com/ai-forever/langchainjs/tree/main/libs/langchain-gigachat"},"packageManager":"yarn@3.4.1","homepage":"https://github.com/ai-forever/langchainjs/tree/main/libs/langchain-gigachat","scripts":{"build":"yarn turbo:command build:internal --filter=langchain-gigachat","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"Mikelarg","license":"MIT","keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","gigachat","machine learning","ml","embeddings","vectorstores"],"dependencies":{"gigachat":"^0.0.15","uuid":"^11.0.5","zod":"^3.23.8","zod-to-json-schema":"^3.23.5"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"devDependencies":{"@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^15.10.1","rollup":"4.22.4","ts-jest":"^29.1.0","turbo":"^2.3.2","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{"./chat_models":{"types":{"import":"./chat_models.d.ts","require":"./chat_models.d.cts","default":"./chat_models.d.ts"},"import":"./chat_models.js","require":"./chat_models.cjs"},"./embeddings":{"types":{"import":"./embeddings.d.ts","require":"./embeddings.d.cts","default":"./embeddings.d.ts"},"import":"./embeddings.js","require":"./embeddings.cjs"},".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","chat_models.cjs","chat_models.js","chat_models.d.ts","chat_models.d.cts","embeddings.cjs","embeddings.js","embeddings.d.ts","embeddings.d.cts","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-
|
|
1
|
+
{"name":"langchain-gigachat","version":"0.0.14","description":"GigaChat integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"https://github.com/ai-forever/langchainjs/tree/main/libs/langchain-gigachat"},"packageManager":"yarn@3.4.1","homepage":"https://github.com/ai-forever/langchainjs/tree/main/libs/langchain-gigachat","scripts":{"build":"yarn turbo:command build:internal --filter=langchain-gigachat","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"Mikelarg","license":"MIT","keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","gigachat","machine learning","ml","embeddings","vectorstores"],"dependencies":{"gigachat":"^0.0.15","uuid":"^11.0.5","zod":"^3.23.8","zod-to-json-schema":"^3.23.5"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"devDependencies":{"@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^15.10.1","rollup":"4.22.4","ts-jest":"^29.1.0","turbo":"^2.3.2","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{"./chat_models":{"types":{"import":"./chat_models.d.ts","require":"./chat_models.d.cts","default":"./chat_models.d.ts"},"import":"./chat_models.js","require":"./chat_models.cjs"},"./embeddings":{"types":{"import":"./embeddings.d.ts","require":"./embeddings.d.cts","default":"./embeddings.d.ts"},"import":"./embeddings.js","require":"./embeddings.cjs"},".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","chat_models.cjs","chat_models.js","chat_models.d.ts","chat_models.d.cts","embeddings.cjs","embeddings.js","embeddings.d.ts","embeddings.d.cts","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-04-07T15:55:42.351Z"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "AI LLM:GigaChat",
|
|
5
5
|
"description": "Support integration with GigaChat LLM service.",
|
|
6
6
|
"description.zh-CN": "支持接入 GigaChat LLM 服务。",
|
|
7
|
-
"version": "2.1.0-alpha.
|
|
7
|
+
"version": "2.1.0-alpha.14",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"nocobase": {
|
|
10
10
|
"supportedVersions": [
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@nocobase/client": "2.x",
|
|
17
17
|
"@nocobase/plugin-ai": "2.x",
|
|
18
|
+
"@nocobase/plugin-workflow": "2.x",
|
|
18
19
|
"@nocobase/server": "2.x",
|
|
19
20
|
"@nocobase/test": "2.x"
|
|
20
21
|
},
|
|
@@ -25,5 +26,5 @@
|
|
|
25
26
|
"AI"
|
|
26
27
|
],
|
|
27
28
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "d8735b541de0ff9557bba704de49c799b4962672"
|
|
29
30
|
}
|