Skip to content

Commit d330fe3

Browse files
happy-qiaocopybara-github
authored andcommitted
fix: Fix docstring order and add node version badge in README
PiperOrigin-RevId: 661411561
1 parent 86d759b commit d330fe3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![NPM Downloads](https://img.shields.io/npm/dm/%40google-cloud%2Fvertexai)](https://www.npmjs.com/package/@google-cloud/vertexai)
2+
[![Node Current](https://img.shields.io/node/v/%40google-cloud%2Fvertexai)](https://www.npmjs.com/package/@google-cloud/vertexai)
23

34
# Vertex AI SDK for Node.js quickstart
45

src/functions/generate_content.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
/**
19-
* Make a async call to generate content.
20-
* @param request A GenerateContentRequest object with the request contents.
21-
* @returns The GenerateContentResponse object with the response candidates.
22-
*/
23-
2418
import {
2519
GenerateContentRequest,
2620
GenerateContentResult,
@@ -47,6 +41,11 @@ import {
4741
getApiVersion,
4842
} from './pre_fetch_processing';
4943

44+
/**
45+
* Make a async call to generate content.
46+
* @param request A GenerateContentRequest object with the request contents.
47+
* @returns The GenerateContentResponse object with the response candidates.
48+
*/
5049
export async function generateContent(
5150
location: string,
5251
resourcePath: string,

0 commit comments

Comments
 (0)