feat: replace separate messages with bulk payload
#7
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| paths: [action.yml, .github/workflows/ci.yml] | |
| jobs: | |
| CI: | |
| runs-on: [ubuntu-24.04] | |
| permissions: | |
| contents: read # Required to checkout repository. | |
| models: read # Required for AI inference. | |
| steps: | |
| - name: Echo context | |
| env: | |
| GH_JSON: ${{ toJson(github) }} | |
| run: echo "$GH_JSON" | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: action.yml | |
| - name: Inference request | |
| id: prompt | |
| uses: ./ | |
| with: | |
| payload: | | |
| model: openai/gpt-4.1-mini | |
| messages: | |
| - role: system | |
| content: You are a helpful assistant | |
| - role: user | |
| content: What is the capital of France | |
| max_tokens: 100 | |
| temperature: 0.9 | |
| top_p: 0.9 | |
| - name: Echo outputs | |
| run: | | |
| echo "response:" | |
| echo "${{ steps.prompt.outputs.response }}" | |
| echo "response-file:" | |
| echo "${{ steps.prompt.outputs.response-file }}" | |
| echo "response-file contents:" | |
| cat "${{ steps.prompt.outputs.response-file }}" | jq | |
| echo "payload:" | |
| echo "${{ steps.prompt.outputs.payload }}" |