hanzoai 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,8 +6,9 @@ The official TypeScript client for the [Hanzo Cloud API](https://api.hanzo.ai)
|
|
|
6
6
|
AI inference plus every `/v1/<service>` product, in one install.
|
|
7
7
|
|
|
8
8
|
Generated from [`hanzoai/openapi`](https://github.com/hanzoai/openapi)'s
|
|
9
|
-
`hanzo.yaml
|
|
10
|
-
|
|
9
|
+
`hanzo.yaml` — the same document the API serves at
|
|
10
|
+
[`/v1/openapi.json`](https://api.hanzo.ai/v1/openapi.json). Never hand-written,
|
|
11
|
+
so the client cannot describe a route the server does not serve.
|
|
11
12
|
|
|
12
13
|
## Install
|
|
13
14
|
|
|
@@ -41,7 +42,7 @@ const ai = new OpenAICompatibleApi(
|
|
|
41
42
|
|
|
42
43
|
const { data } = await ai.aiCreateChatCompletion({
|
|
43
44
|
aiChatCompletionRequest: {
|
|
44
|
-
model: '
|
|
45
|
+
model: 'zen5',
|
|
45
46
|
messages: [{ role: 'user', content: 'Say hello in exactly five words.' }],
|
|
46
47
|
},
|
|
47
48
|
});
|