
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
strapi-openai-translate
Advanced tools
Configure the provider through the pluginOptions:
module.exports = {
// ...
translate: {
enabled: true,
config: {
// Choose one of the available providers
provider: 'chatgpt',
// Pass credentials and other options to the provider
providerOptions: {
// your API key - required and wil cause errors if not provided
apiKey: 'sk-...',
// use base path - default: 'https://api.openai.com/v1'
basePath: 'https://api.openai.com/v1',
// model - default: 'gpt-4o'
model: 'gpt-4o',
// max tokens used per one translate operation - default: 1000
maxTokens: 1000,
// use custom locale mapping (for example 'en' locale is deprecated so need to choose between 'EN-GB' and 'EN-US')
localeMap: {
// use uppercase here!
EN: 'EN-US',
},
},
// other options ...
},
},
// ...
}
or use the default environment variables:
OPENAI_API_KEY
- default undefined
OPENAI_MODEL
- default gpt-4o
OPENAI_BASE_PATH
- default https://api.openai.com/v1
OPENAI_MAX_TOKENS
- default 1000
To get an API key, register for platform.openai.com/account/api-keys.
To be described
FAQs
ChatGPT provider for translate plugin in Strapi 4
The npm package strapi-openai-translate receives a total of 9 weekly downloads. As such, strapi-openai-translate popularity was classified as not popular.
We found that strapi-openai-translate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.