Skip to content

Commit 00dde7a

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

2 files changed

Lines changed: 38 additions & 1 deletion

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Preview Builds
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
paths:
8+
- "openapi.yaml"
9+
10+
jobs:
11+
preview:
12+
if: github.event.action != 'closed'
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 2
22+
23+
- name: Run preview builds
24+
uses: stainless-api/upload-openapi-spec-action/preview@v1
25+
with:
26+
stainless_api_key: ${{ secrets.STAINLESS_API_KEY }}
27+
org: togethercomputer
28+
commit_message: 'Preview build'
29+
base_sha: ${{ github.sha }}
30+
base_ref: 'main'
31+
base_branch: 'main'
32+
default_branch: 'main'
33+
head_sha: ${{ github.sha }}
34+
branch: ${{ github.ref }}
35+
36+
project: 'togetherai'
37+
oas_path: 'openapi.yaml'

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)