Added OWUI update workflow
All checks were successful
Update OWUI Prompts / update-prompts (push) Successful in 4s
All checks were successful
Update OWUI Prompts / update-prompts (push) Successful in 4s
This commit is contained in:
parent
abdd42ce8c
commit
ec94a0967d
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/update.yaml
Normal file
31
.forgejo/workflows/update.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Update OWUI Prompts
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- "retards-bot.md"
|
||||||
|
- "retards-helper.md"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-prompts:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Update Retards Bot prompt
|
||||||
|
run: |
|
||||||
|
PROMPT=$(cat retards-bot.md)
|
||||||
|
curl -s -X PATCH "${{ secrets.OWUI_URL }}/api/v1/models/retards-bot" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.OWUI_API_KEY }}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "{\"system_prompt\": $(echo "$PROMPT" | python3 -c "import json,sys; print(json.dumps(sys.stdin.read()))")}"
|
||||||
|
|
||||||
|
- name: Update Retards Helper prompt
|
||||||
|
run: |
|
||||||
|
PROMPT=$(cat retards-helper.md)
|
||||||
|
curl -s -X PATCH "${{ secrets.OWUI_URL }}/api/v1/models/retards-helper" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.OWUI_API_KEY }}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "{\"system_prompt\": $(echo "$PROMPT" | python3 -c "import json,sys; print(json.dumps(sys.stdin.read()))")}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue