diff --git a/IntelliNode/.npmignore b/IntelliNode/.npmignore index fc6e655..cd3f875 100644 --- a/IntelliNode/.npmignore +++ b/IntelliNode/.npmignore @@ -2,4 +2,4 @@ node_modules .idea dist -test/ +test/integration/ diff --git a/IntelliNode/README.md b/IntelliNode/README.md index ae55998..9d9646b 100644 --- a/IntelliNode/README.md +++ b/IntelliNode/README.md @@ -153,7 +153,7 @@ ProxyHelper.getInstance().setAzureOpenai(resourceName); - **The function layer** provides abstract functionality that extends based on the app's use cases. For example, an easy-to-use chatbot or marketing content generation utilities. # License -Apache 2.0 License +Apache License Copyright 2023 Github.com/Barqawiz/IntelliNode diff --git a/IntelliNode/package.json b/IntelliNode/package.json index a33540c..41a8ac7 100644 --- a/IntelliNode/package.json +++ b/IntelliNode/package.json @@ -1,15 +1,18 @@ { "name": "intellinode", - "version": "0.0.38", + "version": "1.0.0", "description": "Access various AI models, such as ChatGPT, Diffusion, Cohere, Google, and others", "main": "index.js", "keywords": ["AI", "ChatGPT", "GPT4", "stable diffusion", "openai", "huggingface", "language models", "image generation", "speech synthesis", "semantic search"], "author": "Ahmad Albarqawi", - "license": "Apache 2.0", + "license": "Apache", "repository": { "type": "git", "url": "git+https://github.com/Barqawiz/IntelliNode.git" }, + "scripts": { + "test": "node test/unit/testRunner" + }, "homepage": "https://intellinode.ai", "dependencies": { "axios": "^1.3.6", diff --git a/IntelliNode/test/AzureOpenAIWrapper.test.js b/IntelliNode/test/integration/AzureOpenAIWrapper.test.js similarity index 94% rename from IntelliNode/test/AzureOpenAIWrapper.test.js rename to IntelliNode/test/integration/AzureOpenAIWrapper.test.js index 62fa37b..9d2580f 100644 --- a/IntelliNode/test/AzureOpenAIWrapper.test.js +++ b/IntelliNode/test/integration/AzureOpenAIWrapper.test.js @@ -1,7 +1,7 @@ require('dotenv').config(); const assert = require('assert'); -const OpenAIWrapper = require('../wrappers/OpenAIWrapper'); -const proxyHelper = require('../utils/ProxyHelper').getInstance(); +const OpenAIWrapper = require('../../wrappers/OpenAIWrapper'); +const proxyHelper = require('../../utils/ProxyHelper').getInstance(); let openAI = null; async function testLanguageModel() { diff --git a/IntelliNode/test/Chatbot.test.js b/IntelliNode/test/integration/Chatbot.test.js similarity index 90% rename from IntelliNode/test/Chatbot.test.js rename to IntelliNode/test/integration/Chatbot.test.js index c700b3b..221ee92 100644 --- a/IntelliNode/test/Chatbot.test.js +++ b/IntelliNode/test/integration/Chatbot.test.js @@ -1,7 +1,7 @@ require("dotenv").config(); const assert = require("assert"); -const { Chatbot, SupportedChatModels } = require("../function/Chatbot"); -const { ChatGPTInput, ChatGPTMessage } = require("../model/input/ChatModelInput"); +const { Chatbot, SupportedChatModels } = require("../../function/Chatbot"); +const { ChatGPTInput, ChatGPTMessage } = require("../../model/input/ChatModelInput"); const apiKey = process.env.OPENAI_API_KEY; const bot = new Chatbot(apiKey, SupportedChatModels.OPENAI); diff --git a/IntelliNode/test/CohereAIWrapper.test.js b/IntelliNode/test/integration/CohereAIWrapper.test.js similarity index 95% rename from IntelliNode/test/CohereAIWrapper.test.js rename to IntelliNode/test/integration/CohereAIWrapper.test.js index 120809a..a2760fc 100644 --- a/IntelliNode/test/CohereAIWrapper.test.js +++ b/IntelliNode/test/integration/CohereAIWrapper.test.js @@ -1,6 +1,6 @@ require('dotenv').config(); const assert = require('assert'); -const CohereAIWrapper = require('../wrappers/CohereAIWrapper'); +const CohereAIWrapper = require('../../wrappers/CohereAIWrapper'); const cohere = new CohereAIWrapper(process.env.COHERE_API_KEY); diff --git a/IntelliNode/test/CustomGen.test.js b/IntelliNode/test/integration/CustomGen.test.js similarity index 100% rename from IntelliNode/test/CustomGen.test.js rename to IntelliNode/test/integration/CustomGen.test.js diff --git a/IntelliNode/test/Gen.test.js b/IntelliNode/test/integration/Gen.test.js similarity index 99% rename from IntelliNode/test/Gen.test.js rename to IntelliNode/test/integration/Gen.test.js index 89cdf31..93ff1b0 100644 --- a/IntelliNode/test/Gen.test.js +++ b/IntelliNode/test/integration/Gen.test.js @@ -1,4 +1,4 @@ -const { Gen } = require("../function/Gen"); +const { Gen } = require("../../function/Gen"); require("dotenv").config(); const assert = require("assert"); const fs = require('fs'); diff --git a/IntelliNode/test/GoogleAIWrapper.test.js b/IntelliNode/test/integration/GoogleAIWrapper.test.js similarity index 89% rename from IntelliNode/test/GoogleAIWrapper.test.js rename to IntelliNode/test/integration/GoogleAIWrapper.test.js index c438cb9..7273886 100644 --- a/IntelliNode/test/GoogleAIWrapper.test.js +++ b/IntelliNode/test/integration/GoogleAIWrapper.test.js @@ -1,5 +1,5 @@ require('dotenv').config(); -const GoogleAIWrapper = require('../wrappers/GoogleAIWrapper'); +const GoogleAIWrapper = require('../../wrappers/GoogleAIWrapper'); const googleAI = new GoogleAIWrapper(process.env.GOOGLE_API_KEY); diff --git a/IntelliNode/test/HuggingWrapper.test.js b/IntelliNode/test/integration/HuggingWrapper.test.js similarity index 95% rename from IntelliNode/test/HuggingWrapper.test.js rename to IntelliNode/test/integration/HuggingWrapper.test.js index e008b78..7c9a70c 100644 --- a/IntelliNode/test/HuggingWrapper.test.js +++ b/IntelliNode/test/integration/HuggingWrapper.test.js @@ -1,5 +1,5 @@ require('dotenv').config(); -const HuggingWrapper = require('../wrappers/HuggingWrapper'); +const HuggingWrapper = require('../../wrappers/HuggingWrapper'); const huggingWrapper = new HuggingWrapper(process.env.HUGGING_API_KEY); diff --git a/IntelliNode/test/LanguageModelInput.test.js b/IntelliNode/test/integration/LanguageModelInput.test.js similarity index 83% rename from IntelliNode/test/LanguageModelInput.test.js rename to IntelliNode/test/integration/LanguageModelInput.test.js index f7ba2f3..861b3c8 100644 --- a/IntelliNode/test/LanguageModelInput.test.js +++ b/IntelliNode/test/integration/LanguageModelInput.test.js @@ -1,4 +1,4 @@ -const LanguageModelInput = require("../model/input/LanguageModelInput"); +const LanguageModelInput = require("../../model/input/LanguageModelInput"); function testOpenAIInputs() { const input = new LanguageModelInput({ diff --git a/IntelliNode/test/OpenAIWrapper.test.js b/IntelliNode/test/integration/OpenAIWrapper.test.js similarity index 95% rename from IntelliNode/test/OpenAIWrapper.test.js rename to IntelliNode/test/integration/OpenAIWrapper.test.js index d2c2c96..3584429 100644 --- a/IntelliNode/test/OpenAIWrapper.test.js +++ b/IntelliNode/test/integration/OpenAIWrapper.test.js @@ -1,7 +1,7 @@ require('dotenv').config(); const assert = require('assert'); -const OpenAIWrapper = require('../wrappers/OpenAIWrapper'); -const proxyHelper = require('../utils/ProxyHelper').getInstance(); +const OpenAIWrapper = require('../../wrappers/OpenAIWrapper'); +const proxyHelper = require('../../utils/ProxyHelper').getInstance(); const openAI = new OpenAIWrapper(process.env.OPENAI_API_KEY); diff --git a/IntelliNode/test/RemoteEmbedModel.test.js b/IntelliNode/test/integration/RemoteEmbedModel.test.js similarity index 88% rename from IntelliNode/test/RemoteEmbedModel.test.js rename to IntelliNode/test/integration/RemoteEmbedModel.test.js index e794ce7..5cbc8e6 100644 --- a/IntelliNode/test/RemoteEmbedModel.test.js +++ b/IntelliNode/test/integration/RemoteEmbedModel.test.js @@ -1,7 +1,7 @@ require('dotenv').config(); const assert = require('assert'); -const { RemoteEmbedModel, SupportedEmbedModels } = require('../controller/RemoteEmbedModel'); -const EmbedInput = require('../model/input/EmbedInput'); +const { RemoteEmbedModel, SupportedEmbedModels } = require('../../controller/RemoteEmbedModel'); +const EmbedInput = require('../../model/input/EmbedInput'); const openaiApiKey = process.env.OPENAI_API_KEY; const cohereApiKey = process.env.COHERE_API_KEY; diff --git a/IntelliNode/test/RemoteImageModel.test.js b/IntelliNode/test/integration/RemoteImageModel.test.js similarity index 95% rename from IntelliNode/test/RemoteImageModel.test.js rename to IntelliNode/test/integration/RemoteImageModel.test.js index cfc1f20..9731f49 100644 --- a/IntelliNode/test/RemoteImageModel.test.js +++ b/IntelliNode/test/integration/RemoteImageModel.test.js @@ -1,6 +1,6 @@ const assert = require("assert"); -const { RemoteImageModel } = require("../controller/RemoteImageModel"); -const ImageModelInput = require("../model/input/ImageModelInput"); +const { RemoteImageModel } = require("../../controller/RemoteImageModel"); +const ImageModelInput = require("../../model/input/ImageModelInput"); require("dotenv").config(); const openaiKey = process.env.OPENAI_API_KEY; diff --git a/IntelliNode/test/RemoteLanguageModel.test.js b/IntelliNode/test/integration/RemoteLanguageModel.test.js similarity index 94% rename from IntelliNode/test/RemoteLanguageModel.test.js rename to IntelliNode/test/integration/RemoteLanguageModel.test.js index c03c220..8d84cc8 100644 --- a/IntelliNode/test/RemoteLanguageModel.test.js +++ b/IntelliNode/test/integration/RemoteLanguageModel.test.js @@ -1,7 +1,7 @@ require('dotenv').config(); const assert = require('assert'); -const { RemoteLanguageModel, SupportedLangModels } = require('../controller/RemoteLanguageModel'); -const LanguageModelInput = require('../model/input/LanguageModelInput'); +const { RemoteLanguageModel, SupportedLangModels } = require('../../controller/RemoteLanguageModel'); +const LanguageModelInput = require('../../model/input/LanguageModelInput'); const openaiApiKey = process.env.OPENAI_API_KEY; const cohereApiKey = process.env.COHERE_API_KEY; diff --git a/IntelliNode/test/RemoteSpeechModel.test.js b/IntelliNode/test/integration/RemoteSpeechModel.test.js similarity index 90% rename from IntelliNode/test/RemoteSpeechModel.test.js rename to IntelliNode/test/integration/RemoteSpeechModel.test.js index ffc3030..8851406 100644 --- a/IntelliNode/test/RemoteSpeechModel.test.js +++ b/IntelliNode/test/integration/RemoteSpeechModel.test.js @@ -2,8 +2,8 @@ const fs = require('fs'); require('dotenv').config(); const assert = require('assert'); const { RemoteSpeechModel, SupportedSpeechModels } = require('../controller/RemoteSpeechModel'); -const Text2SpeechInput = require('../model/input/Text2SpeechInput'); -const AudioHelper = require('../utils/AudioHelper'); +const Text2SpeechInput = require('../../model/input/Text2SpeechInput'); +const AudioHelper = require('../../utils/AudioHelper'); const remoteSpeechModel = new RemoteSpeechModel(process.env.GOOGLE_API_KEY, SupportedSpeechModels.GOOGLE); const audioHelper = new AudioHelper(); diff --git a/IntelliNode/test/SemanticSearch.test.js b/IntelliNode/test/integration/SemanticSearch.test.js similarity index 91% rename from IntelliNode/test/SemanticSearch.test.js rename to IntelliNode/test/integration/SemanticSearch.test.js index aa78858..39070f8 100644 --- a/IntelliNode/test/SemanticSearch.test.js +++ b/IntelliNode/test/integration/SemanticSearch.test.js @@ -1,7 +1,7 @@ require('dotenv').config(); const assert = require('assert'); -const SemanticSearch = require('../function/SemanticSearch'); -const { SupportedEmbedModels } = require('../controller/RemoteEmbedModel'); +const SemanticSearch = require('../../function/SemanticSearch'); +const { SupportedEmbedModels } = require('../../controller/RemoteEmbedModel'); const openaiApiKey = process.env.OPENAI_API_KEY; const cohereApiKey = process.env.COHERE_API_KEY; diff --git a/IntelliNode/test/StabilityAIWrapper.test.js b/IntelliNode/test/integration/StabilityAIWrapper.test.js similarity index 92% rename from IntelliNode/test/StabilityAIWrapper.test.js rename to IntelliNode/test/integration/StabilityAIWrapper.test.js index f4974bc..24b56f5 100644 --- a/IntelliNode/test/StabilityAIWrapper.test.js +++ b/IntelliNode/test/integration/StabilityAIWrapper.test.js @@ -1,6 +1,6 @@ require("dotenv").config(); -const StabilityAIWrapper = require("../wrappers/StabilityAIWrapper"); -const ImageModelInput = require("../model/input/ImageModelInput"); +const StabilityAIWrapper = require("../../wrappers/StabilityAIWrapper"); +const ImageModelInput = require("../../model/input/ImageModelInput"); const fs = require('fs'); const stabilityAI = new StabilityAIWrapper(process.env.STABILITY_API_KEY); diff --git a/IntelliNode/test/TextAnalyzer.test.js b/IntelliNode/test/integration/TextAnalyzer.test.js similarity index 94% rename from IntelliNode/test/TextAnalyzer.test.js rename to IntelliNode/test/integration/TextAnalyzer.test.js index 3873466..0190ecf 100644 --- a/IntelliNode/test/TextAnalyzer.test.js +++ b/IntelliNode/test/integration/TextAnalyzer.test.js @@ -1,7 +1,7 @@ require('dotenv').config(); const assert = require('assert'); -const { TextAnalyzer } = require('../function/TextAnalyzer'); -const { SupportedLangModels } = require('../controller/RemoteLanguageModel'); +const { TextAnalyzer } = require('../../function/TextAnalyzer'); +const { SupportedLangModels } = require('../../controller/RemoteLanguageModel'); const openaiApiKey = process.env.OPENAI_API_KEY; const cohereApiKey = process.env.COHERE_API_KEY; diff --git a/IntelliNode/test/unit/CohereAIWrapper.test.js b/IntelliNode/test/unit/CohereAIWrapper.test.js new file mode 100644 index 0000000..7af5738 --- /dev/null +++ b/IntelliNode/test/unit/CohereAIWrapper.test.js @@ -0,0 +1,40 @@ +const assert = require('assert'); +const CohereAIWrapper = require('../../wrappers/CohereAIWrapper'); +const config = require('../../utils/Config2').getInstance(); + +function testCohereAIWrapper() { + const apiKey = 'your-api-key'; + const cohereAIWrapper = new CohereAIWrapper(apiKey); + + assert.strictEqual(cohereAIWrapper.API_KEY, apiKey, 'API key should be set'); + assert.ok(cohereAIWrapper.httpClient, 'httpClient should be created'); + + // Test httpClient configuration + const expectedBaseURL = config.getProperty('url.cohere.base'); + const expectedCohereVersion = config.getProperty('url.cohere.version'); + const expectedContentType = 'application/json'; + const expectedAuthHeader = `Bearer ${apiKey}`; + + assert.strictEqual( + cohereAIWrapper.httpClient.defaults.baseURL, + expectedBaseURL, + 'httpClient baseURL should be set correctly' + ); + assert.strictEqual( + cohereAIWrapper.httpClient.defaults.headers['Content-Type'], + expectedContentType, + 'httpClient Content-Type header should be set correctly' + ); + assert.strictEqual( + cohereAIWrapper.httpClient.defaults.headers['Authorization'], + expectedAuthHeader, + 'httpClient Authorization header should be set correctly' + ); + assert.strictEqual( + cohereAIWrapper.httpClient.defaults.headers['Cohere-Version'], + expectedCohereVersion, + 'httpClient Cohere-Version header should be set correctly' + ); +} + +module.exports = testCohereAIWrapper; \ No newline at end of file diff --git a/IntelliNode/test/unit/GoogleAIWrapper.test.js b/IntelliNode/test/unit/GoogleAIWrapper.test.js new file mode 100644 index 0000000..bc85d7c --- /dev/null +++ b/IntelliNode/test/unit/GoogleAIWrapper.test.js @@ -0,0 +1,62 @@ +const assert = require('assert'); +const GoogleAIWrapper = require('../../wrappers/GoogleAIWrapper'); +const config = require('../../utils/Config2').getInstance(); + +function testGoogleAIWrapper() { + const apiKey = 'your-api-key'; + const googleAIWrapper = new GoogleAIWrapper(apiKey); + + assert.strictEqual(googleAIWrapper.API_KEY, apiKey, 'API key should be set'); + assert.ok(googleAIWrapper.httpClient, 'httpClient should be created'); + + // Test httpClient configuration + const expectedBaseURL = config + .getProperty('url.google.base') + .replace('{1}', config.getProperty('url.google.speech.prefix')); + const expectedContentType = 'application/json; charset=utf-8'; + + assert.strictEqual( + googleAIWrapper.httpClient.defaults.baseURL, + expectedBaseURL, + 'httpClient baseURL should be set correctly' + ); + assert.strictEqual( + googleAIWrapper.httpClient.defaults.headers['Content-Type'], + expectedContentType, + 'httpClient Content-Type header should be set correctly' + ); + assert.strictEqual( + googleAIWrapper.httpClient.defaults.headers['X-Goog-Api-Key'], + apiKey, + 'httpClient X-Goog-Api-Key header should be set correctly' + ); + + // Test getSynthesizeInput() method + const params = { + text: 'Hello world', + languageCode: 'en-US', + name: 'en-US-Wavenet-A', + ssmlGender: 'MALE', + }; + const expectedModelInput = JSON.stringify({ + input: { + text: params.text, + }, + voice: { + languageCode: params.languageCode, + name: params.name, + ssmlGender: params.ssmlGender, + }, + audioConfig: { + audioEncoding: 'MP3', + }, + }); + + assert.strictEqual( + googleAIWrapper.getSynthesizeInput(params), + expectedModelInput, + 'getSynthesizeInput() should return the correct model input as a JSON string' + ); +} + +module.exports = testGoogleAIWrapper; \ No newline at end of file diff --git a/IntelliNode/test/unit/HuggingWrapper.test.js b/IntelliNode/test/unit/HuggingWrapper.test.js new file mode 100644 index 0000000..a9eb762 --- /dev/null +++ b/IntelliNode/test/unit/HuggingWrapper.test.js @@ -0,0 +1,34 @@ +const assert = require('assert'); +const HuggingWrapper = require('../../wrappers/HuggingWrapper'); +const config = require('../../utils/Config2').getInstance(); + +function testHuggingWrapper() { + const apiKey = 'your-api-key'; + const huggingWrapper = new HuggingWrapper(apiKey); + + assert.strictEqual(huggingWrapper.API_KEY, apiKey, 'API key should be set'); + assert.ok(huggingWrapper.httpClient, 'httpClient should be created'); + + // Test httpClient configuration + const expectedBaseURL = config.getProperty('url.huggingface.base'); + const expectedContentType = 'application/json'; + const expectedAuthHeader = `Bearer ${apiKey}`; + + assert.strictEqual( + huggingWrapper.httpClient.defaults.baseURL, + expectedBaseURL, + 'httpClient baseURL should be set correctly' + ); + assert.strictEqual( + huggingWrapper.httpClient.defaults.headers['Content-Type'], + expectedContentType, + 'httpClient Content-Type header should be set correctly' + ); + assert.strictEqual( + huggingWrapper.httpClient.defaults.headers['Authorization'], + expectedAuthHeader, + 'httpClient Authorization header should be set correctly' + ); +} + +module.exports = testHuggingWrapper; \ No newline at end of file diff --git a/IntelliNode/test/unit/OpenAIWrapper.test.js b/IntelliNode/test/unit/OpenAIWrapper.test.js new file mode 100644 index 0000000..5cd83d0 --- /dev/null +++ b/IntelliNode/test/unit/OpenAIWrapper.test.js @@ -0,0 +1,36 @@ +const assert = require('assert'); +const OpenAIWrapper = require('../../wrappers/OpenAIWrapper'); +const ProxyHelper = require('../../utils/ProxyHelper'); +const config = require('../../utils/Config2').getInstance(); + +function testOpenAIWrapper() { + const apiKey = 'your-api-key'; + const proxyHelper = ProxyHelper.getInstance(); + const openAIWrapper = new OpenAIWrapper(apiKey); + + assert.strictEqual(openAIWrapper.API_KEY, apiKey, 'API key should be set'); + assert.ok(openAIWrapper.httpClient, 'httpClient should be created'); + + // Test httpClient configuration + const expectedBaseURL = proxyHelper.getOpenaiURL(); + const expectedContentType = 'application/json'; + const expectedAuthHeader = `Bearer ${apiKey}`; + + assert.strictEqual( + openAIWrapper.httpClient.defaults.baseURL, + expectedBaseURL, + 'httpClient baseURL should be set correctly' + ); + assert.strictEqual( + openAIWrapper.httpClient.defaults.headers['Content-Type'], + expectedContentType, + 'httpClient Content-Type header should be set correctly' + ); + assert.strictEqual( + openAIWrapper.httpClient.defaults.headers['Authorization'], + expectedAuthHeader, + 'httpClient Authorization header should be set correctly' + ); +} + +module.exports = testOpenAIWrapper; \ No newline at end of file diff --git a/IntelliNode/test/unit/StabilityAIWrapper.test.js b/IntelliNode/test/unit/StabilityAIWrapper.test.js new file mode 100644 index 0000000..fd60275 --- /dev/null +++ b/IntelliNode/test/unit/StabilityAIWrapper.test.js @@ -0,0 +1,28 @@ +const assert = require('assert'); +const StabilityAIWrapper = require('../../wrappers/StabilityAIWrapper'); +const config = require('../../utils/Config2').getInstance(); + +function testStabilityAIWrapper() { + const apiKey = 'your-api-key'; + const stabilityAIWrapper = new StabilityAIWrapper(apiKey); + + assert.strictEqual(stabilityAIWrapper.API_KEY, apiKey, 'API key should be set'); + assert.ok(stabilityAIWrapper.httpClient, 'httpClient should be created'); + + // Test httpClient configuration + const expectedBaseURL = config.getProperty('url.stability.base'); + const expectedAuthHeader = `Bearer ${apiKey}`; + + assert.strictEqual( + stabilityAIWrapper.httpClient.defaults.baseURL, + expectedBaseURL, + 'httpClient baseURL should be set correctly' + ); + assert.strictEqual( + stabilityAIWrapper.httpClient.defaults.headers['Authorization'], + expectedAuthHeader, + 'httpClient Authorization header should be set correctly' + ); +} + +module.exports = testStabilityAIWrapper; \ No newline at end of file diff --git a/IntelliNode/test/unit/testRunner.js b/IntelliNode/test/unit/testRunner.js new file mode 100644 index 0000000..7a323b9 --- /dev/null +++ b/IntelliNode/test/unit/testRunner.js @@ -0,0 +1,20 @@ +const testCohereAIWrapper = require('./CohereAIWrapper.test'); +const testGoogleAIWrapper = require('./GoogleAIWrapper.test'); +const testHuggingWrapper = require('./HuggingWrapper.test'); +const testOpenAIWrapper = require('./OpenAIWrapper.test'); +const testStabilityAIWrapper = require('./StabilityAIWrapper.test'); + +console.log('Running CohereAIWrapper unit tests...'); +testCohereAIWrapper(); + +console.log('Running GoogleAIWrapper unit tests...'); +testGoogleAIWrapper(); + +console.log('Running HuggingWrapper unit tests...'); +testHuggingWrapper(); + +console.log('Running OpenAIWrapper unit tests...'); +testOpenAIWrapper(); + +console.log('Running Stability unit tests...'); +testStabilityAIWrapper() \ No newline at end of file diff --git a/README.md b/README.md index 8f7bdc7..632ff52 100644 --- a/README.md +++ b/README.md @@ -162,27 +162,27 @@ HUGGING_API_KEY= ## Test cases 1. run the remote language models test cases: -`node test/RemoteLanguageModel.test.js` +`node test/integration/RemoteLanguageModel.test.js` 2. run the remote image models test cases: -`node test/RemoteImageModel.test.js` +`node test/integration/RemoteImageModel.test.js` 3. run the remote speech models test cases: -`node test/RemoteSpeechModel.test.js` +`node test/integration/RemoteSpeechModel.test.js` 4. run the embedding test cases: -`node test/RemoteEmbedModel.test.js` +`node test/integration/RemoteEmbedModel.test.js` 5. run the chatBot test cases: -`node test/Chatbot.test.js` +`node test/integration/Chatbot.test.js` # :closed_book: Documentation - [Tutorial](https://medium.com/@albarqawi/lightning-fast-access-to-the-latest-ai-models-using-node-js-d31ccd1b09b2): Generate compelling eCommerce content and images. - [Samples](https://github.com/Barqawiz/IntelliNode/tree/main/samples/command_sample): Explore a code sample with detailed setup documentation to get started with Intellinode. - [Tutorial](https://hackernoon.com/how-to-build-a-jasper-like-content-generation-platform-using-nodejs): Build your content generation platform using Intellinode. -- [Showcase](https://show.intellinode.ai/): Experience the potential of Intellinode in action, and use your keys to generate content and html pages. +- [Showcase](https://show.intellinode.ai/): Experience the potential of Intellinode in action, and use your keys to generate content and html pages. # Pillars The module foundation: