chore(Dockerfile): set working directory to /app for better organization #19
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: Basic Prompt | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate AI Text | |
uses: 0xjord4n/[email protected] | |
id: aixion | |
with: | |
config: > | |
{ | |
"provider": "openai", | |
"provider_options": { | |
"api_key": "${{ secrets.OPENAI_API_KEY }}" | |
}, | |
"prompt": "What is the capital of France?", | |
"model": "gpt-4" | |
} | |
- name: Output | |
run: | | |
echo "Text: ${{ steps.aixion.outputs.text }}" | |
echo "Usage: ${{ steps.aixion.outputs.usage }}" | |
echo "Finish Reason: ${{ steps.aixion.outputs.finishReason }}" |