File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments