We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efbbaa2 commit 1a66a59Copy full SHA for 1a66a59
README.md
@@ -14,16 +14,24 @@ your actions.
14
Create a workflow to use the AI inference action:
15
16
```yaml
17
-steps:
18
- - name: Test Local Action
19
- id: inference
20
- uses: actions/ai-inference@v1
21
- with:
22
- prompt: 'Hello!'
23
-
24
- - name: Print Output
25
- id: output
26
- run: echo "${{ steps.test-action.outputs.response }}"
+name: "AI inference"
+on: workflow_dispatch
+
+jobs:
+ inference:
+ permissions:
+ models: read
+ runs-on: ubuntu-latest
+ steps:
+ - name: Test Local Action
27
+ id: inference
28
+ uses: actions/ai-inference@v1
29
+ with:
30
+ prompt: 'Hello!'
31
32
+ - name: Print Output
33
+ id: output
34
+ run: echo "${{ steps.inference.outputs.response }}"
35
```
36
37
## Inputs
0 commit comments