Skip to content

Commit

Permalink
feat: add prompt to example
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-braz committed Sep 29, 2023
1 parent f2f4206 commit cca8837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release_notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
verbose: true
token: ${{ secrets.GITHUB_TOKEN }}
openai_key: ${{ secrets.OPENAI_KEY }}
max_tokens: 400
prompt: Gere notas de lançamento em português, para novos os recursos do aplicativo XYZ. As notas devem ser comerciais, genéricas e estritamentes sucintas. O objetivo é que as notas de lançamento sejam usadas para promover o aplicativo e não para descrever as alteração.

- name: Print Release Notes (Use it as you want)
run: |
Expand Down
2 changes: 1 addition & 1 deletion services/gpt_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GptService {
role: 'user',
},
],
max_tokens: maxTokens || 500,
max_tokens: parseInt(maxTokens) || 500,
n: 1,
model: model || 'gpt-3.5-turbo',
});
Expand Down

0 comments on commit cca8837

Please sign in to comment.