Skip to content

Commit

Permalink
fix: Fix docstring order and add node version badge in README
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 661411561
  • Loading branch information
happy-qiao authored and copybara-github committed Aug 9, 2024
1 parent 86d759b commit d330fe3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![NPM Downloads](https://img.shields.io/npm/dm/%40google-cloud%2Fvertexai)](https://www.npmjs.com/package/@google-cloud/vertexai)
[![Node Current](https://img.shields.io/node/v/%40google-cloud%2Fvertexai)](https://www.npmjs.com/package/@google-cloud/vertexai)

# Vertex AI SDK for Node.js quickstart

Expand Down
11 changes: 5 additions & 6 deletions src/functions/generate_content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
* limitations under the License.
*/

/**
* Make a async call to generate content.
* @param request A GenerateContentRequest object with the request contents.
* @returns The GenerateContentResponse object with the response candidates.
*/

import {
GenerateContentRequest,
GenerateContentResult,
Expand All @@ -47,6 +41,11 @@ import {
getApiVersion,
} from './pre_fetch_processing';

/**
* Make a async call to generate content.
* @param request A GenerateContentRequest object with the request contents.
* @returns The GenerateContentResponse object with the response candidates.
*/
export async function generateContent(
location: string,
resourcePath: string,
Expand Down

0 comments on commit d330fe3

Please sign in to comment.