@zohodesk/codestandard-validator 1.2.4-exp-7 → 1.2.4-exp-9
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/build/ai/ollama-service.js +3 -1
- package/build/utils/General/Config.js +2 -2
- package/index.js +0 -1
- package/package.json +1 -1
|
@@ -21,10 +21,12 @@ function sanitizeStreamText(text) {
|
|
|
21
21
|
* Ollama API Configuration Schema
|
|
22
22
|
* Ref: https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-completion
|
|
23
23
|
*/
|
|
24
|
+
|
|
25
|
+
const LOCALHOST = ""; // FIll HOST HERE
|
|
24
26
|
const API_CONFIG_SCHEMA = {
|
|
25
27
|
baseUrl: {
|
|
26
28
|
type: 'string',
|
|
27
|
-
default:
|
|
29
|
+
default: LOCALHOST,
|
|
28
30
|
required: true
|
|
29
31
|
},
|
|
30
32
|
model: {
|
|
@@ -24,9 +24,9 @@ function postInstallExecution() {
|
|
|
24
24
|
initializationPath
|
|
25
25
|
} = getServicePathElseCommon();
|
|
26
26
|
const {
|
|
27
|
-
|
|
27
|
+
initialize
|
|
28
28
|
} = require(initializationPath);
|
|
29
|
-
|
|
29
|
+
initialize();
|
|
30
30
|
} catch (error) {
|
|
31
31
|
Logger.log(Logger.FAILURE_TYPE, `Error while initialize configuration: ${error}`);
|
|
32
32
|
}
|
package/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const { getLintConfigurationUtil } = require("./build/utils/ConfigFileUtils/getLintConfiguration");
|
|
2
2
|
const { rulesConfig, plugins, extendPlugins } = getLintConfigurationUtil();
|
|
3
|
-
// const Mutant = require("./build/mutation/index");
|
|
4
3
|
|
|
5
4
|
module.exports = {
|
|
6
5
|
rulesConfig,
|