Plugin: AI (OpenAI)
Plugin with ability to send prompt requests to OpenAI. It is possible to target either OpenAI cloud, or Azure AI resources. It uses the OpenAI API v1.
Provider URL: https://openai.com/
Class: LTGear.Flowme.Plugin.MT.OpenAI.Translate
Pipeline Format: XLIFF (MT)
Parameters:
ApiKey: API key to access OpenAI.
ApiVersion: The API version to use for this operation. This follows the YYYY - MM - DD format. For example 2024-02-01
AzureDeploymentName: Optional - specific for the Azure OpenAI. The deployment name you chose when you deployed the Azure OpenAI model.
AzureResourceName: Optional - specific for the Azure OpenAI. The name of your Azure OpenAI Resource.
Prompt: Prompt, what to ask the OpenAI chat. Allowed placeholders are following: {sourceLanguage}, {targetLanguage}, {sourceText}, and {targetText}.
WriteTo: Write OpenAI result to source or target? Note that Prompt should be defined accordingly. Allowed values: ‘Source’ or ‘Target’
Usage Examples
Sample 1: Using Azure Cloud model
ApiKey: your-azure-api-key
ApiVersion: your-model-api-version
AzureResourceName: your-azure-resource-name
AzureDeploymentName: your-azure-deployment-name
Prompt: Translate the following text from {sourceLanguage} to {targetLanguage}: {sourceText}
WriteTo: Target
Sample 2: Using OpenAI cloud model
ApiKey: your-OpenAI-api-key
ApiVersion: your-model-api-version
Prompt: Translate the following text from {sourceLanguage} to {targetLanguage}: {sourceText}
WriteTo: Target