Documentation
References
Action Inputs

Action Inputs

Required fields are asterisked.

NameDescriptiontype
apikey*API Keysecrets
providerAI providerstring
modelThe language model to usestring
inputFilestarget file pathsspace-delimited string
outputFilesoutput pathsspace-delimited string
languagestarget languagespace-delimited string
promptThe input prompt to generate the text fromstring
systemPromptThe system prompt to use that specifies the behavior of the modelstring
basePathbase path of openai apistring
top_pControls diversity via nucleus sampling (0 to 1)number
temperatureControls randomness (0 to 2)number
max_tokensMaximum number of tokens to generatenumber
presence_penaltyPenalizes new tokens based on their existing presence (-2 to 2)number
frequency_penaltyPenalizes new tokens based on their frequency (-2 to 2)number
seedSeed value for deterministic samplingnumber

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:

  • targetLanguage Indicates the desired language for translation.
  • targetFileExt Specifies 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.'

Related