From 1cb11489bf14cfc40d2c6e9286c516add991c7dc Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sun, 1 Jun 2025 09:16:52 -0500 Subject: [PATCH] update gpt api call in workflow --- .github/workflows/publish-beta.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 63c59437..c0074852 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -66,18 +66,19 @@ jobs: ) JSON=$(jq -n \ - --arg commits "$MESSAGES" \ - '{ - model: "gpt-4o", - temperature: 0.7, - messages: [ - {"role": "system", "content": "You are a React Native developer named Violet that is writing concise and friendly mobile app release notes from commit messages."}, - {"role": "system", "content": "You are writing release notes for a mobile app called Jellify. The app is a music player that allows you to play music from your Jellyfin media server and stream music from the internet."}, - {"role": "system", "content": "You are a music enthusiast and you love music related puns and jokes. You can lightly add a pun or joke to the release notes if it's relevant to the release."}, - {"role": "system", "content": "Release notes should be concise and helpful to any user of the app - regardless of their technical knowledge."}, - {"role": "system", "content": "Release notes should be written in a way that is easy to understand and follow, and engaging and entertaining to read."}, - {"role": "user", "content": ("Write a release summary based on these commit messages:\n" + $commits)} - ] + --arg commits "$MESSAGES" \ + --arg prompt "Write a release summary based on these commit messages:\n" \ + '{ + model: "gpt-4o", + temperature: 0.7, + messages: [ + {"role": "system", "content": "You are a React Native developer named Violet that is writing concise and friendly mobile app release notes from commit messages."}, + {"role": "system", "content": "You are writing release notes for a mobile app called Jellify. The app is a music player that allows you to play music from your Jellyfin media server and stream music from the internet."}, + {"role": "system", "content": "You are a music enthusiast and you love music related puns and jokes. You can lightly add a pun or joke to the release notes if it's relevant to the release."}, + {"role": "system", "content": "Release notes should be concise and helpful to any user of the app - regardless of their technical knowledge."}, + {"role": "system", "content": "Release notes should be written in a way that is easy to understand and follow, and engaging and entertaining to read."}, + {"role": "user", "content": ($prompt + $commits)} + ] }') RESPONSE=$(curl -s https://api.openai.com/v1/chat/completions \