-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
action.yml
65 lines (64 loc) · 1.82 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 'GPT Translate'
description: 'Markdown translation into any other language powered by ChatGPT'
inputs:
token:
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)'
default: ${{ github.token }}
apikey:
description: 'API Key'
required: true
provider:
description: 'AI Provider'
required: false
default: 'openai'
model:
description: 'The language model to use.'
required: false
default: 'gpt-4o'
prompt:
description: 'The input prompt to generate the text from'
required: false
default: 'Please translate the given text into naturalistic {targetLanguage}.'
systemPrompt:
description: 'The system prompt to use that specifies the behavior of the model'
required: false
basePath:
description: 'Replace the base path of openai api'
required: false
inputFiles:
description: 'Input files to translate'
required: false
outputFiles:
description: 'Output files to save'
required: false
languages:
description: 'Language to translate to'
required: false
top_p:
description: 'Controls diversity via nucleus sampling (0 to 1)'
required: false
default: '0.5'
temperature:
description: 'Controls randomness of the output (0 to 2)'
required: false
default: '0.3'
max_tokens:
description: 'Maximum number of tokens in the chat completion'
required: false
presence_penalty:
description: 'Penalizes new tokens based on their existing presence (-2 to 2)'
required: false
default: '0'
frequency_penalty:
description: 'Penalizes new tokens based on their frequency (-2 to 2)'
required: false
default: '0'
seed:
description: 'Seed value for deterministic sampling'
required: false
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'globe'
color: 'green'