Skip to content

Commit d20e889

Browse files
committed
chore: Add preview builds to openapi branch
1 parent ddc815f commit d20e889

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
push:
3+
branches: [!main]
4+
paths:
5+
- "openapi.yaml"
6+
7+
jobs:
8+
preview:
9+
if: github.event.action != 'closed'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 2
19+
20+
- name: Run preview builds
21+
uses: stainless-api/upload-openapi-spec-action/preview@v1
22+
with:
23+
stainless_api_key: ${{ secrets.STAINLESS_API_KEY }}
24+
org: ${{ env.STAINLESS_ORG }}
25+
project: ${{ env.STAINLESS_PROJECT }}
26+
oas_path: ${{ env.OAS_PATH }}

openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ paths:
308308
const response = await client.completions.create({
309309
model: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
310310
prompt: "The largest city in France is",
311-
max_tokens: 1
311+
max_tokens: 1,
312312
});
313313
314314
console.log(response.choices[0].text);

0 commit comments

Comments
 (0)