{"id":20349229,"url":"https://github.com/strapi/strapi-plugin-open-ai","last_synced_at":"2026-02-25T22:04:31.514Z","repository":{"id":65537257,"uuid":"594008202","full_name":"strapi/strapi-plugin-open-ai","owner":"strapi","description":"The official plugin that allows you to create Open AI completion from a prompt","archived":false,"fork":false,"pushed_at":"2024-05-23T14:24:22.000Z","size":17,"stargazers_count":20,"open_issues_count":6,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-29T11:50:36.370Z","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/strapi.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}},"created_at":"2023-01-27T11:31:32.000Z","updated_at":"2024-12-01T13:40:54.000Z","dependencies_parsed_at":"2025-04-12T14:45:54.526Z","dependency_job_id":null,"html_url":"https://github.com/strapi/strapi-plugin-open-ai","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"cd70a0df7385177687ef2c3fb4829bdac1f100dd"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/strapi/strapi-plugin-open-ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strapi%2Fstrapi-plugin-open-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strapi%2Fstrapi-plugin-open-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strapi%2Fstrapi-plugin-open-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strapi%2Fstrapi-plugin-open-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strapi","download_url":"https://codeload.github.com/strapi/strapi-plugin-open-ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strapi%2Fstrapi-plugin-open-ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29842891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T21:18:31.832Z","status":"ssl_error","status_checked_at":"2026-02-25T21:18:29.265Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-14T22:24:45.533Z","updated_at":"2026-02-25T22:04:31.496Z","avatar_url":"https://github.com/strapi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strapi plugin Open AI completion\n\nThe official plugin that allows you to create Open AI completion from a prompt\n\n## Features\n\n- Create completion from multiple [Open AI models](https://beta.openai.com/docs/models)\n- Adjust the [temperature](https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature) and [max_tokens](https://beta.openai.com/docs/api-reference/completions/create#completions/create-max_tokens) of the completion\n\n## Installation\n\nTo install this plugin, you need to add an NPM dependency to your Strapi application.\n\n```sh\n# Using Yarn\nyarn add @strapi/plugin-open-ai\n\n# Or using NPM\nnpm install @strapi/plugin-open-ai\n```\n\n## Configuration\n\n`./config/plugins.js`\n\n```js\nmodule.exports = ({ env }) =\u003e ({\n  // ...\n  'open-ai': {\n    enabled: true,\n    config: {\n      API_TOKEN: '\u003cyour-open-ai-token\u003e',\n    },\n  },\n  // ...\n});\n```\n\nThen, you'll need to build your admin panel:\n\n```sh\n# Using Yarn\nyarn build\n\n# Or using NPM\nnpm run build\n```\n\n## How it works\n\nYou can create AI completions in the content-manager view, when creating or updating an entry. It is mandatory to have a working Open AI API token in your `./config/plugins.js` for the plugin to work. \n\nYou have two tabs when you open the plugin modal:\n\n- Prompt: This is where you can write your prompt and generate the completion. Once generated, you will be able to either clear the completion textarea or to copy it in your clipboard. Copying the completion in your clipboard will automatically close the modal.\n\n- Settings: You can play with some completion API configuration such as selecting your favorite model, having a certain temperature and max_tokens for your completions. It is possible to save your settings!\n\n*Note that the plugin will automatically put the temperature value between 0 and 1 and the max_tokens value between 0 and 4096*\n\nThe plugin has a static list of Open AI models downloaded on late January 2023 (`src/server/services/settings.js`). It is however possible to download actual models in the settings tab. The select input will automatically be updated with the new models.\n\nDefault settings are the following:\n\n- model: ''\n- temperature: 1\n- max_tokens: 16\n- models: [...]\n\nPlease find the Open AI doc for each one of them:\n\n- [Models](https://beta.openai.com/docs/models)\n- [Temperature](https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature)\n- [max_tokens](https://beta.openai.com/docs/api-reference/completions/create#completions/create-max_tokens)\n\nEnjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrapi%2Fstrapi-plugin-open-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrapi%2Fstrapi-plugin-open-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrapi%2Fstrapi-plugin-open-ai/lists"}