Update README.md
This commit is contained in:
@@ -14,16 +14,24 @@ your actions.
|
|||||||
Create a workflow to use the AI inference action:
|
Create a workflow to use the AI inference action:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
name: "AI inference"
|
||||||
- name: Test Local Action
|
on: workflow_dispatch
|
||||||
id: inference
|
|
||||||
uses: actions/ai-inference@v1
|
|
||||||
with:
|
|
||||||
prompt: 'Hello!'
|
|
||||||
|
|
||||||
- name: Print Output
|
jobs:
|
||||||
id: output
|
inference:
|
||||||
run: echo "${{ steps.test-action.outputs.response }}"
|
permissions:
|
||||||
|
models: read
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Test Local Action
|
||||||
|
id: inference
|
||||||
|
uses: actions/ai-inference@v1
|
||||||
|
with:
|
||||||
|
prompt: 'Hello!'
|
||||||
|
|
||||||
|
- name: Print Output
|
||||||
|
id: output
|
||||||
|
run: echo "${{ steps.inference.outputs.response }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Inputs
|
## Inputs
|
||||||
|
|||||||
Reference in New Issue
Block a user