Action Inputs
Required fields are asterisked.
| Name | Description | type |
|---|---|---|
apikey* | API Key | secrets |
provider | AI provider | string |
model | The language model to use | string |
inputFiles | target file paths | space-delimited string |
outputFiles | output paths | space-delimited string |
languages | target language | space-delimited string |
prompt | The input prompt to generate the text from | string |
systemPrompt | The system prompt to use that specifies the behavior of the model | string |
basePath | base path of openai api | string |
top_p | Controls diversity via nucleus sampling (0 to 1) | number |
temperature | Controls randomness (0 to 2) | number |
max_tokens | Maximum number of tokens to generate | number |
presence_penalty | Penalizes new tokens based on their existing presence (-2 to 2) | number |
frequency_penalty | Penalizes new tokens based on their frequency (-2 to 2) | number |
seed | Seed value for deterministic sampling | number |
The default provider is openai and the model is gpt-4o.
Refer to the Metadata file (opens in a new tab) for more information.
prompt
With this configuration, you have the flexibility to define any prompt of your choice.
with:
apikey: ${{ secrets.OPENAI_API_KEY }}
prompt: 'Please translate the given text into naturalistic {targetLanguage}.'You can embed two dynamic variables using the {} brackets to make your prompts more specific:
targetLanguageIndicates the desired language for translation.targetFileExtSpecifies the desired file extension (e.g.,.md).
For instance, if you wish to prompt for a translation into a specific language and specify the output format, your configuration might look like this:
prompt: 'Please translate the given text into naturalistic {targetLanguage} and output it in {targetFileExt} format.'