We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eaa166 commit 7ddf20eCopy full SHA for 7ddf20e
.github/workflows/ai_inference_test.yml
@@ -0,0 +1,27 @@
1
+name: AI Inference Test
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
7
+jobs:
8
+ test-ai-inference:
9
+ name: Test AI Inference Action
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ models: read
14
+ steps:
15
+ - name: Run AI Inference
16
+ id: inference
17
+ uses: actions/ai-inference@v2
18
+ env:
19
+ OPEN_AI_BASE_URL: ${{ secrets.AI_INFERENCE_ENDPOINT }}
20
+ with:
21
+ token: '{{ secrets.AI_INFERENCE_TOKEN }}'
22
+ model: 'gpt-4.1'
23
+ prompt: 'Say "Hello, World!" and nothing else.'
24
25
+ - name: Print Response
26
+ run: echo "${{ steps.inference.outputs.response }}"
27
0 commit comments