-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 907 Bytes
/
Copy pathai-inference.yml
File metadata and controls
35 lines (31 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# https://github.com/actions/ai-inference
name: AI Inference
on:
workflow_dispatch:
inputs:
prompt:
type: text
description: 'The prompt to send to the model'
required: true
default: 'What can you do help?'
# model:
# type: text
# description: 'The model to use for inference. Must be available in the GitHub Models catalog'
# required: true
# default: 'gpt-4o'
jobs:
send-prompt:
permissions:
contents: read
models: read
runs-on: ubuntu-latest
steps:
- name: Test Local Action
id: inference
uses: actions/ai-inference@v1
with:
prompt: '${{ github.event.inputs.prompt }}'
# model: '${{ github.event.inputs.model }}'
- name: Print Output
id: output
run: echo "${{ steps.inference.outputs.response }}" >> $GITHUB_STEP_SUMMARY