@maxim_mazurok/gapi.client.aiplatform-v1 0.0.20240814 → 0.0.20240828
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/index.d.ts +1294 -139
- package/package.json +1 -1
- package/readme.md +44 -1
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -72,5 +72,48 @@ gapi.auth.authorize(
|
|
|
72
72
|
After that you can use Vertex AI API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
73
73
|
|
|
74
74
|
```typescript
|
|
75
|
-
|
|
75
|
+
/*
|
|
76
|
+
Creates a Dataset.
|
|
77
|
+
*/
|
|
78
|
+
await gapi.client.aiplatform.datasets.create({});
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
Deletes a Dataset.
|
|
82
|
+
*/
|
|
83
|
+
await gapi.client.aiplatform.datasets.delete({name: 'name'});
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
Gets a Dataset.
|
|
87
|
+
*/
|
|
88
|
+
await gapi.client.aiplatform.datasets.get({name: 'name'});
|
|
89
|
+
|
|
90
|
+
/*
|
|
91
|
+
Lists Datasets in a Location.
|
|
92
|
+
*/
|
|
93
|
+
await gapi.client.aiplatform.datasets.list({});
|
|
94
|
+
|
|
95
|
+
/*
|
|
96
|
+
Updates a Dataset.
|
|
97
|
+
*/
|
|
98
|
+
await gapi.client.aiplatform.datasets.patch({name: 'name'});
|
|
99
|
+
|
|
100
|
+
/*
|
|
101
|
+
Return a list of tokens based on the input text.
|
|
102
|
+
*/
|
|
103
|
+
await gapi.client.aiplatform.endpoints.computeTokens({endpoint: 'endpoint'});
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
Perform a token counting.
|
|
107
|
+
*/
|
|
108
|
+
await gapi.client.aiplatform.endpoints.countTokens({endpoint: 'endpoint'});
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
Generate content with multimodal inputs.
|
|
112
|
+
*/
|
|
113
|
+
await gapi.client.aiplatform.endpoints.generateContent({model: 'model'});
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
Generate content with multimodal inputs with streaming support.
|
|
117
|
+
*/
|
|
118
|
+
await gapi.client.aiplatform.endpoints.streamGenerateContent({model: 'model'});
|
|
76
119
|
```
|