Skip to content

Commit 3ecc4c7

Browse files
authored
Merge pull request #153 from togethercomputer/blaine/eng-45304-openapi-preview-builds
Blaine/eng 45304 openapi preview builds
2 parents ddc815f + 691b3e1 commit 3ecc4c7

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Preview Builds
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- closed
10+
11+
jobs:
12+
preview:
13+
if: github.event.action != 'closed'
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 2
23+
24+
- name: Run preview builds
25+
uses: stainless-api/upload-openapi-spec-action/preview@v1
26+
with:
27+
stainless_api_key: ${{ secrets.STAINLESS_API_KEY }}
28+
org: togethercomputer
29+
project: togetherai
30+
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)