o1 isn’t a chat model (and that’s the point) #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bookmark Summary | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.md' | |
workflow_dispatch: | |
concurrency: | |
group: mygroup | |
cancel-in-progress: false | |
jobs: | |
summarize: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout bookmark-collection | |
uses: actions/checkout@v2 | |
with: | |
path: bookmark-collection | |
- name: Checkout bookmark-summary | |
uses: actions/checkout@v2 | |
with: | |
repository: jerrylususu/bookmark-summary | |
path: bookmark-summary | |
token: ${{ secrets.PAT }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests waybackpy | |
- name: Process changes | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OPENAI_API_MODEL: ${{ secrets.OPENAI_API_MODEL }} | |
OPENAI_API_ENDPOINT: ${{ secrets.OPENAI_API_ENDPOINT }} | |
run: | | |
python bookmark-summary/process_changes.py | |
- name: Commit changes to bookmark-summary | |
run: | | |
cd bookmark-summary | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Add new summaries" || echo "No changes to commit" | |
git push |