You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
69
69
70
-
```bash
71
-
npx prism mock path/to/your/openapi.yml
70
+
```sh
71
+
$ npx prism mock path/to/your/openapi.yml
72
72
```
73
73
74
-
```bash
75
-
yarn run test
74
+
```sh
75
+
$ yarn run test
76
76
```
77
77
78
78
## Linting and formatting
@@ -82,26 +82,12 @@ This repository uses [prettier](https://www.npmjs.com/package/prettier) and
82
82
83
83
To lint:
84
84
85
-
```bash
86
-
yarn lint
85
+
```sh
86
+
$ yarn lint
87
87
```
88
88
89
89
To format and fix all lint issues automatically:
90
90
91
-
```bash
92
-
yarn fix
91
+
```sh
92
+
$ yarn fix
93
93
```
94
-
95
-
## Publishing and releases
96
-
97
-
Changes made to this repository via the automated release PR pipeline should publish to npm automatically. If
98
-
the changes aren't made through the automated pipeline, you may want to make releases manually.
99
-
100
-
### Publish with a GitHub workflow
101
-
102
-
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/stainless-sdks/llama-stack-node/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up.
103
-
104
-
### Publish manually
105
-
106
-
If you need to manually release a package, you can run the `bin/publish-npm` script with an `NPM_TOKEN` set on
This library provides convenient access to the Llama Stack Client REST API from server-side TypeScript or JavaScript.
6
6
7
-
The REST API documentation can be found on [llama-stack](https://github.com/meta-llama/llama-stack/blob/main/docs/resources/llama-stack-spec.html). The full API of this library can be found in [api.md](api.md).
7
+
The REST API documentation can be found on [https://llama-stack.readthedocs.io/en/latest/references/api_reference/index.html](https://llama-stack.readthedocs.io/en/latest/references/api_reference/index.html). The full API of this library can be found in [api.md](api.md).
8
8
9
9
It is generated with [Stainless](https://www.stainlessapi.com/).
10
10
@@ -14,7 +14,6 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
14
14
npm install llama-stack-client
15
15
```
16
16
17
-
18
17
## Usage
19
18
20
19
The full API of this library can be found in [api.md](api.md).
@@ -24,18 +23,40 @@ The full API of this library can be found in [api.md](api.md).
24
23
importLlamaStackClientfrom'llama-stack-client';
25
24
26
25
constclient=newLlamaStackClient({
27
-
environment:'sandbox', // defaults to 'production'
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
281
302
282
303
1. Changes that only affect static types, without breaking runtime behavior.
283
-
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_.
304
+
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
284
305
3. Changes that we do not expect to impact the vast majority of users in practice.
285
306
286
307
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
@@ -293,6 +314,19 @@ TypeScript >= 4.5 is supported.
293
314
294
315
The following runtimes are supported:
295
316
317
+
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
318
+
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
319
+
- Deno v1.28.0 or higher.
320
+
- Bun 1.0 or later.
321
+
- Cloudflare Workers.
322
+
- Vercel Edge Runtime.
323
+
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
324
+
- Nitro v2.6 or greater.
325
+
296
326
Note that React Native is not supported at this time.
297
327
298
328
If you are interested in other runtime environments, please open or upvote an issue on GitHub.
329
+
330
+
## Contributing
331
+
332
+
See [the contributing documentation](./CONTRIBUTING.md).
0 commit comments