-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
51 lines (51 loc) · 1.63 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
name: 'ChatGPT Comment'
description: 'Autogenerated a PR comment based on the code changes'
inputs:
custom-prompt:
description: 'Prompt to feed to ChatGPT'
required: false
default: 'Combining each part. Summarize the changes in 300 words or less based on the pull request title and file changes.'
frequency-penalty:
description: 'Reduces the probability of words that have already been generated'
required: false
default: 0
github-token:
description: 'GitHub Token'
required: true
ignore-paths:
description: 'comma separated list of paths and files'
required: false
max-prompt-tokens:
description: 'The maximum number of tokens to use for the prompt'
required: false
default: '10000'
max-response-tokens:
description: 'The maximum number of tokens allowed in the response'
required: false
default: 512
model:
description: 'The model to use for the AI'
required: false
default: 'gpt-3.5-turbo'
open-api-key:
description: 'OpenAPI Token'
required: true
presence-penalty:
description: 'Reduces the probability of a word if it already appeared in the predicted text'
required: false
default: 0
segment-size:
description: 'The number of tokens used to segment the prompt'
required: false
default: 3096
temperature:
description: 'Parameter that controls how much randomness is in the output'
required: false
default: 1
top_p:
description: 'Controls how many of the highest-probability words are selected to be included in the generated text'
required: false
default: 1
runs:
using: 'node16'
main: 'dist/index.js'