strapi-provider-translate-ai
v1.0.3
Published
AI provider for translate plugin in Strapi 4
Downloads
4
Readme
AI provider for Strapi Translate Plugin
Configure the provider through the pluginOptions:
module.exports = {
// ...
translate: {
enabled: true,
config: {
provider: 'ai',
providerOptions: {
apiKey: 'sk-**-**`',
// use custom api url - optional
apiUrl: 'https://api.openai.com/v1/chat/completions',
apiModel: 'gpt-4o-mini',
},
// other options ...
},
},
// ...
}or use the default environment variables:
AI_API_KEY- defaultundefinedAI_API_URL- defaulthttps://api.openai.com/v1/chat/completionsAI_API_MODEL- defaultgpt-4o-mini
To get an API key, register for platform.openai.com/account/api-keys, Or use the OpenAI-compatible apiUrl and apiKey.
