Skip to content

Commit a829f57

Browse files
committed
Fix model catalog update workflow
- Change 'chu models update' to 'chu model update --all' (correct command) - Update script to read from correct file: models_catalog.json - Add --all flag to fetch entire catalog from all providers
1 parent afd8ff7 commit a829f57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
4747
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4848
run: |
49-
# Models will be saved to ~/.chuchu/models.json
49+
# Models will be saved to ~/.chuchu/models_catalog.json
5050
mkdir -p ~/.chuchu
51-
./bin/chu models update || echo "Model update completed with warnings"
51+
./bin/chu model update --all || echo "Model update completed with warnings"
5252
5353
- name: Export models for web
5454
run: |

scripts/export-models-for-web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func main() {
9999
os.Exit(1)
100100
}
101101

102-
inputPath := filepath.Join(home, ".chuchu", "models.json")
102+
inputPath := filepath.Join(home, ".chuchu", "models_catalog.json")
103103
data, err := os.ReadFile(inputPath)
104104
if err != nil {
105105
fmt.Fprintf(os.Stderr, "Failed to read %s: %v\n", inputPath, err)

0 commit comments

Comments
 (0)