{"id":31227585,"url":"https://github.com/simplicitesoftware/simai","last_synced_at":"2025-09-22T04:55:01.780Z","repository":{"id":294870113,"uuid":"988339791","full_name":"simplicitesoftware/SimAi","owner":"simplicitesoftware","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-19T20:24:56.000Z","size":1236,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T23:11:39.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplicitesoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-22T12:03:38.000Z","updated_at":"2025-09-04T11:48:49.000Z","dependencies_parsed_at":"2025-07-23T16:17:37.728Z","dependency_job_id":"11d5509f-4dfe-4054-86f5-0204a9eb0acb","html_url":"https://github.com/simplicitesoftware/SimAi","commit_stats":null,"previous_names":["cbimont/simai","simplicitesoftware/simai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simplicitesoftware/SimAi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2FSimAi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2FSimAi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2FSimAi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2FSimAi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplicitesoftware","download_url":"https://codeload.github.com/simplicitesoftware/SimAi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplicitesoftware%2FSimAi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276348323,"owners_count":25626605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-22T04:55:00.850Z","updated_at":"2025-09-22T04:55:01.769Z","avatar_url":"https://github.com/simplicitesoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n ___ _            _ _    _ _    __\n/ __(_)_ __  _ __| (_)__(_) |_ /_/\n\\__ \\ | '  \\| '_ \\ | / _| |  _/ -_)\n|___/_|_|_|_| .__/_|_\\__|_|\\__\\___|\n            |_| \n--\u003e\n![](https://platform.simplicite.io/logos/standard/logo250.png)\n* * *\n\n`SimAI` module definition\n=========================\n\n**SimAI** is an addon of [AiBySimplicite](https://github.com/simplicitesoftware/module_ai) containing a simplified business process for automatic module generation.\n\n## Installation\n\n### Classic\n1. Make sure you have the `AiBySimplicite` module installed\n2. Add this module in your Simplicite instance\n3. Create a user and configure SAI_CREATE_MODULE rights\n\n### Portainer\nIn docker compose add the environement parameter to: \n* Import [`SimThemes`](https://github.com/simplicitesoftware/module-theming), [`AIBySimplicite`](https://github.com/simplicitesoftware/module_ai.git) and [`SimAi`](https://github.com/CBimont/SimAi.git) with dataset and unit test to import examples and create user.\n* Define the AI parameters:\n```json\n{\n     \"completion_url\": \"\",\n     \"bot_name\": \"\",\n     \"code_max_token\": \"\",\n     \"provider\": \"\",\n     \"api_key\": \"\",\n     \"default_max_token\": \"\",\n     \"showDataDisclaimer\": true,\n     \"data_number\": \"\",\n     \"hist_depth\": \"\",\n     \"model\": \"\",\n     \"stt_url\": \"\",\n     \"ping_url\": \"\"\n}\n```\n* Define user information `usrName` and `password`.\n#### Example:\n```\nenvironment:\n      MODULES_IMPORT_SPEC: |\n        title: \"AI External\"\n        modules:\n          - name: \"SimThemes\"\n            version: \"0.3\"\n            git:\n              uri: \"https://github.com/simplicitesoftware/module-theming\"\n          - name: \"AIBySimplicite\"\n            version: \"0.31\"\n            git:\n              uri: \"https://github.com/simplicitesoftware/module_ai.git\"\n              branch: \"simplifiedProcess\"\n          - name: \"SimAi\"\n            version: \"0.4\"\n            datasets: true \n            unittests: true\n            git:\n              uri: \"https://github.com/CBimont/SimAi.git\"\n\n        \n      SIMPLICITE_SYSPARAM_AI_API_PARAM: |\n        {\n         \"completion_url\": \"https://api.mistral.ai/v1/chat/completions\",\n         \"bot_name\": \"George\",\n         \"code_max_token\": \"2000\",\n         \"provider\": \"Mistral AI\",\n         \"api_key\": \"${mistral_api_key}\",\n         \"default_max_token\": \"5000\",\n         \"showDataDisclaimer\": true,\n         \"data_number\": \"3\",\n         \"hist_depth\": \"3\",\n         \"model\": \"pixtral-12b-2409\",\n         \"stt_url\": \"\",\n         \"ping_url\": \"https://api.mistral.ai/v1/models\"\n        }\n      usrName: \"${user_name}\"\n      password: \"${user_password}\"\n```\n\n`SaiContactWidget` widget definition\n------------------------------------\n\nWidget for home page (contact)\n\n`createAiUser` unit test\n-------------------------\n\nCreate a new user granted to process with `usrName` and `password` environment variable, dedicated for docker compose auto deployment.\n\n`SaiApplicationExample` business object definition\n--------------------------------------------------\n\nChat prompt examples\n\n### Fields\n\n| Name                                                         | Type                                     | Required | Updatable | Personal | Description                                                                      |\n|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|\n| `saiSaeTitle`                                                | char(50)                                 | yes*     | yes       |          | -                                                                                |\n| `saiSaeTitleEnglish`                                         | char(100)                                | yes*     | yes       |          | -                                                                                |\n| `saiSaeSummary`                                              | text(350)                                |          | yes       |          | -                                                                                |\n| `saiSaePrompt`                                               | text(1500)                               |          | yes       |          | -                                                                                |\n| `saiSaeSummaryEnglish`                                       | text(350)                                |          | yes       |          | -                                                                                |\n| `saiSaePromptEnglish`                                        | text(1500)                               |          | yes       |          | -                                                                                |\n\n`SaiContact` business object definition\n---------------------------------------\n\nManagement of commercial contact and module registration.\n\n### Fields\n\n| Name                                                         | Type                                     | Required | Updatable | Personal | Description                                                                      |\n|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|\n| `saiContactName`                                             | char(100)                                |          | yes       |          | -                                                                                |\n| `saiContactEmail`                                            | email(100)                               |          | yes       |          | -                                                                                |\n| `saiContactPhone`                                            | phone(100)                               |          | yes       |          | -                                                                                |\n| `saiContactComment`                                          | text(1000)                               |          | yes       |          | -                                                                                |\n| `saiCntModuleId` link to **`Module`**                        | id                                       | yes*     | yes       |          | -                                                                                |\n| _Ref. `saiCntModuleId.mdl_name`_                             | _regexp(100)_                            |          |           |          | _Module name_                                                                    |\n| _Ref. `saiCntModuleId.mdl_xml`_                              | _document_                               |          |           |          | _Module file_                                                                    |\n| `saiCntSended`                                               | boolean                                  | yes      |           |          | -                                                                                |\n| `saiCntDeletion`                                             | datetime                                 |          |           |          | -                                                                                |\n| `saiCntViewhomeId` link to **`ViewHome`**                    | id                                       |          |           |          | -                                                                                |\n| _Ref. `saiCntViewhomeId.viw_name`_                           | _char(100)_                              |          |           |          | -                                                                                |\n\n`SaiContactDashboard` external object definition\n------------------------------------------------\n\n\n\n\n`SaiCreateModuleApi` external object definition\n-----------------------------------------------\n\nCustom endpoint, Interface with the AIBySimplicite process.\n\n\n`SaiErrorPage` external object definition\n-----------------------------------------\n\nExternal page, redirect page in case of technical error (such as inaccessible Mistral API or missing token).\n\n\n`SaiNewModuleFront` external object definition\n----------------------------------------------\n\nExternal page, module generation process.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplicitesoftware%2Fsimai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplicitesoftware%2Fsimai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplicitesoftware%2Fsimai/lists"}