GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: genai sample base by LukeSchlangen · Pull Request #3587 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@LukeSchlangen

@LukeSchlangen LukeSchlangen commented Dec 13, 2023

Copy link
Copy Markdown
Member

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followed guidelines from CONTRIBUTING.MD and Samples Style Guide
  • Tests pass: npm test (see Testing)
  • Lint pass: npm run lint (see Style)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • This pull request is from a branch created directly off of GoogleCloudPlatform/nodejs-docs-samples. Not a fork.
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new sample directory, and I created GitHub Actions workflow for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pattishin
feat: initial base for generative-ai
dc9370f
@LukeSchlangen
LukeSchlangen requested a review from pattishin December 13, 2023 03:42
@LukeSchlangen
LukeSchlangen requested review from a team as code owners December 13, 2023 03:43
@google-cla

google-cla Bot commented Dec 13, 2023

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@snippet-bot

snippet-bot Bot commented Dec 13, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 10 region tags.
  • generative-ai/snippets/countTokens.js:22, tag aiplatform_gemini_token_count
  • generative-ai/snippets/nonStreamingChat.js:31, tag aiplatform_gemini_multiturn_chat
  • generative-ai/snippets/nonStreamingContent.js:22, tag aiplatform_gemini_function_calling
  • generative-ai/snippets/nonStreamingMultipartContent.js:24, tag aiplatform_gemini_get_started
  • generative-ai/snippets/safetySettings.js:22, tag aiplatform_gemini_safety_settings
  • generative-ai/snippets/sendMultiModalPromptWithImage.js:22, tag aiplatform_gemini_single_turn_multi_image
  • generative-ai/snippets/sendMultiModalPromptWithVideo.js:22, tag aiplatform_gemini_single_turn_video
  • generative-ai/snippets/streamChat.js:22, tag aiplatform_gemini_multiturn_chat
  • generative-ai/snippets/streamContent.js:22, tag aiplatform_gemini_function_calling
  • generative-ai/snippets/streamMultipartContent.js:24, tag aiplatform_gemini_get_started

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: workflows Issues related to the Workflows API. labels Dec 13, 2023
@blunderbuss-gcf blunderbuss-gcf Bot assigned averikitsch Dec 13, 2023
@pattishin pattishin changed the title Feat/genai sample base feat: genai sample base Dec 13, 2023
kweinmeister
kweinmeister approved these changes Dec 13, 2023
View reviewed changes
pattishin added 2 commits December 12, 2023 19:53
@pattishin
# This is a combination of 16 commits.
f5e5888
# This is the 1st commit message:

refactor: updating codeowners

# This is the commit message #2:

add chat functions

# This is the commit message #3:

use correct testing project

# This is the commit message #4:

refactor: adding system tests + updating corresponding chat samples

# This is the commit message #5:

add countTokens sample

# This is the commit message #6:

refactor: adding in region tags, abstracting out mimetype, adding new image ur

# This is the commit message #7:

refactor: updating gs url in test, fix to args getting passed to sample functions

# This is the commit message #8:

refactor: resolving file paths in tests, adding wait helper function

# This is the commit message #9:

add warning about safety concerns

# This is the commit message #10:

refactor:filling out nonstreamingchat and streamcontent tests

# This is the commit message #11:

add countTokens test

# This is the commit message #12:

refactor: filling out more streaming tests

# This is the commit message #13:

add safety settings test

# This is the commit message #14:

refactor: adding in stream content and multipart content tests

# This is the commit message #15:

feat: add new sendMultiModalPromptWithImage sample

# This is the commit message #16:

refactor: adding region tags
@pattishin
refactor: updating codeowners
adbb42b
add chat functions

use correct testing project

refactor: adding system tests + updating corresponding chat samples

add countTokens sample

refactor: adding in region tags, abstracting out mimetype, adding new image ur

refactor: updating gs url in test, fix to args getting passed to sample functions

refactor: resolving file paths in tests, adding wait helper function

add warning about safety concerns

refactor:filling out nonstreamingchat and streamcontent tests

add countTokens test

refactor: filling out more streaming tests

add safety settings test

refactor: adding in stream content and multipart content tests

feat: add new sendMultiModalPromptWithImage sample

refactor: adding region tags

update to common prompt

fix: resolve linting
@pattishin
pattishin force-pushed the feat/genai-sample-base branch from d4a1a10 to adbb42b Compare December 13, 2023 03:54
@pattishin
refactor: remove index file
080d94b
pattishin
pattishin approved these changes Dec 13, 2023
View reviewed changes
@pattishin
pattishin merged commit dfb4fa9 into main Dec 13, 2023
@pattishin
pattishin deleted the feat/genai-sample-base branch December 13, 2023 03:57
@pattishin pattishin unassigned averikitsch Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kweinmeister kweinmeister kweinmeister approved these changes
+1 more reviewer
@pattishin pattishin pattishin approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: workflows Issues related to the Workflows API. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@LukeSchlangen @pattishin @kweinmeister @averikitsch
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.