4343 cat sync-output.txt
4444 exit 0
4545
46- - name : Upload sync output
47- if : steps.check-models.outputs.exit_code == '1'
48- uses : actions/upload-artifact@v4
49- with :
50- name : sync-output
51- path : sync-output.txt
52- retention-days : 7
53-
5446 - name : Create Pull Request
5547 if : steps.check-models.outputs.exit_code == '1'
5648 id : create-pr
@@ -65,52 +57,29 @@ jobs:
6557
6658 This PR updates AI provider model lists based on the latest data from [models.dev](https://models.dev).
6759
68- ### Changes Detected
69-
70- The sync script found differences between our current model lists and the latest available models.
60+ **Review the file changes** to see which models were added or removed for each provider.
7161
72- ### What to Review
62+ ### What to Check
7363
74- - ✅ Verify that new models are legitimate and available
75- - ✅ Check that removed models are actually deprecated
76- - ✅ Ensure model IDs match the provider's API documentation
64+ - ✅ New models are legitimate and available
65+ - ✅ Removed models are actually deprecated/retired
66+ - ✅ Model IDs match provider documentation
7767
78- ### Testing
68+ ### Testing Locally
7969
80- Run the sync script locally to verify:
8170 ```bash
8271 npx tsx packages/openops/src/lib/ai/sync-models.ts
8372 ```
8473
85- ### Sync Output
86-
87- Full details will be added in a comment below.
88-
8974 ---
9075
91- 🔗 **Source**: https://models.dev/api.json
92- 📅 **Run**: ${{ github.run_id }}
76+ 🔗 **Source**: https://models.dev/api.json (MIT License)
9377 branch : sync-ai-models-${{ github.run_number }}
9478 delete-branch : true
9579 labels : |
9680 dependencies
9781 automated
9882
99- - name : Comment on PR with details
100- if : steps.create-pr.outputs.pull-request-number
101- uses : actions/github-script@v7
102- with :
103- script : |
104- const fs = require('fs');
105- const output = fs.readFileSync('sync-output.txt', 'utf8');
106-
107- github.rest.issues.createComment({
108- owner: context.repo.owner,
109- repo: context.repo.repo,
110- issue_number: ${{ steps.create-pr.outputs.pull-request-number }},
111- body: `### 📊 Model Sync Details\n\n\`\`\`\n${output}\n\`\`\``
112- });
113-
11483 - name : Summary
11584 if : always()
11685 run : |
0 commit comments