Skip to content

Commit

Permalink
chatgpt-revision.yaml: add file names input
Browse files Browse the repository at this point in the history
  • Loading branch information
miltondp committed Jan 5, 2023
1 parent 45cdd62 commit 9824466
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/chatgpt-revision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
required: true
type: string
default: 'main'
file_names:
description: 'File names to revise (e.g., "00.abstract.md,01.intro.md")'
required: false
type: string
default: ''
model:
description: 'Language model to use (https://beta.openai.com/docs/models/gpt-3)'
required: true
Expand All @@ -33,6 +38,7 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AI_EDITOR_LANGUAGE_MODEL: ${{ inputs.model }}
AI_EDITOR_FILENAMES_TO_REVISE: ${{ inputs.file_names }}
AI_EDITOR_FILENAME_SECTION_MAPPING: '{"04.05.01.crispr.md": "results", "04.15.drug_disease_prediction.md": "results", "04.20.00.traits_clustering.md": "results"}'
# More variables can be specified to control the behavior of the model:
# https://github.com/greenelab/manubot-ai-editor/blob/main/libs/manubot/ai_editor/env_vars.py
Expand Down

0 comments on commit 9824466

Please sign in to comment.